From 9d6c33c5bcbb42ad0f7bf2f912487b491e1fa6ec Mon Sep 17 00:00:00 2001 From: Martin Minkov Date: Fri, 25 Aug 2023 13:13:01 -0700 Subject: [PATCH] feat(index.page.tsx): add proveUpdateTransaction method call to ensure transaction validity before sending it --- .../offchain-storage-zkapp/ui/pages/index.page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/ui/pages/index.page.tsx b/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/ui/pages/index.page.tsx index 103aaa76b..b5a9dd86a 100644 --- a/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/ui/pages/index.page.tsx +++ b/examples/zkapps/06-offchain-storage/offchain-storage-zkapp/ui/pages/index.page.tsx @@ -120,6 +120,7 @@ export default function Home() { privateKey, localZkappPrivateKey ); + await zkappWorkerClient.proveUpdateTransaction(); transactionHash = await zkappWorkerClient.sendUpdateTransaction(); console.log( 'See transaction at https://berkeley.minaexplorer.com/transaction/' +