Skip to content

Commit

Permalink
feat: update contract import path
Browse files Browse the repository at this point in the history
  • Loading branch information
ymekuria committed Jul 13, 2023
1 parent e9686e5 commit 06f7f95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type Transaction = Awaited<ReturnType<typeof Mina.transaction>>;

// ---------------------------------------------------------------------------------------

import type { Add } from '../../contracts/src/Add';
import type { Add } from '../../../contracts/src/Add';

const state = {
Add: null as null | typeof Add,
Expand All @@ -25,7 +25,7 @@ const functions = {
Mina.setActiveInstance(Berkeley);
},
loadContract: async (args: {}) => {
const { Add } = await import('../../contracts/build/src/Add.js');
const { Add } = await import('../../../contracts/build/src/Add.js');
state.Add = Add;
},
compileContract: async (args: {}) => {
Expand Down

0 comments on commit 06f7f95

Please sign in to comment.