From 0b90b634e65af5350aac1d4419fe5da90e95f1ea Mon Sep 17 00:00:00 2001 From: Martin Minkov Date: Fri, 25 Aug 2023 10:47:15 -0700 Subject: [PATCH] refactor(main.ts): remove useLocal condition to always compile smart contract feat(main.ts): add console log message after compiling smart contract for better user feedback --- .../offchain-storage-zkapp/contracts/src/main.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/contracts/src/main.ts b/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/contracts/src/main.ts index d32ad4974..118e17848 100644 --- a/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/contracts/src/main.ts +++ b/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/contracts/src/main.ts @@ -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);