Skip to content

Commit

Permalink
refactor(main.ts): remove useLocal condition to always compile smart …
Browse files Browse the repository at this point in the history
…contract

feat(main.ts): add console log message after compiling smart contract for better user feedback
  • Loading branch information
MartinMinkov committed Aug 25, 2023
1 parent 1fc95e3 commit 0b90b63
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ const serverPublicKey = await OffChainStorage.getPublicKey(
NodeXMLHttpRequest
);

if (!useLocal) {
console.log('Compiling smart contract...');
await NumberTreeContract.compile();
}
console.log('Compiling smart contract...');
await NumberTreeContract.compile();
console.log('Done compiling smart contract');

const zkapp = new NumberTreeContract(zkappPublicKey);

Expand Down

0 comments on commit 0b90b63

Please sign in to comment.