From 28fde783472aa1b933ad89cd337750a3f6845c68 Mon Sep 17 00:00:00 2001 From: Jules Doumeche <30329843+julio4@users.noreply.github.com> Date: Mon, 13 May 2024 12:20:06 +0900 Subject: [PATCH] Update testing-zkapps-locally.mdx --- docs/zkapps/testing-zkapps-locally.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/zkapps/testing-zkapps-locally.mdx b/docs/zkapps/testing-zkapps-locally.mdx index 01d39d066..c4c46ce45 100644 --- a/docs/zkapps/testing-zkapps-locally.mdx +++ b/docs/zkapps/testing-zkapps-locally.mdx @@ -110,10 +110,11 @@ Then, use the test account and zkApp keys to construct a transaction to pay acco ```ts let txn = await Mina.transaction(feePayer, async () => { AccountUpdate.fundNewAccount(feePayer); - async zkAppInstance.deploy({ zkappKey: zkAppPrivateKey }); + await zkAppInstance.deploy(); }); -const txPromise = await txn.send(); +const txPromise = await txn.send(); + /* `txn.send()` returns a promise with two closures - `.wait()` and `.hash` `.hash` returns the transaction hash, as the name might indicate