From a82e9965d4ce9121e19184f51c4f0158635fb9f5 Mon Sep 17 00:00:00 2001 From: Oliver He Date: Wed, 18 Oct 2023 10:43:09 -0400 Subject: [PATCH] Fix simple transfer example (#90) --- examples/typescript/simple_transfer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/typescript/simple_transfer.ts b/examples/typescript/simple_transfer.ts index a3af64ae4..ba3d52af0 100644 --- a/examples/typescript/simple_transfer.ts +++ b/examples/typescript/simple_transfer.ts @@ -70,7 +70,7 @@ const example = async () => { sender: alice.accountAddress.toString(), data: { function: "0x1::coin::transfer", - type_arguments: [new TypeTagStruct(StructTag.fromString(APTOS_COIN))], + typeArguments: [new TypeTagStruct(StructTag.fromString(APTOS_COIN))], arguments: [AccountAddress.fromHexInput(bob.accountAddress.toString()), new U64(TRANSFER_AMOUNT)], }, }); @@ -78,7 +78,7 @@ const example = async () => { console.log("\n=== Transfer transaction ===\n"); let committedTxn = await aptos.signAndSubmitTransaction({ signer: alice, transaction: txn }); - await aptos.waitForTransaction({ txnHash: committedTxn.hash }); + await aptos.waitForTransaction({ transactionHash: committedTxn.hash }); console.log(`Committed transaction: ${committedTxn.hash}`); console.log("\n=== Balances after transfer ===\n");