Skip to content

Commit 5dd57fc

Browse files
authored
[AA] Fix parameter type error in the documentation (#807)
1 parent cc24943 commit 5dd57fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/nextra/pages/en/build/sdks/ts-sdk/account/account-abstraction.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Once you have created the abstracted account, you can use it to sign transaction
246246
is the same as the abstracted account's address.
247247

248248
```ts
249-
const coinTransferTransaction = new aptos.transaction.build.simple({
249+
const coinTransferTransaction = await aptos.transaction.build.simple({
250250
sender: abstractedAccount.accountAddress,
251251
data: {
252252
function: "0x1::coin::transfer",
@@ -255,12 +255,12 @@ const coinTransferTransaction = new aptos.transaction.build.simple({
255255
},
256256
});
257257

258-
const pendingCoinTransferTransaction = aptos.transaction.signAndSubmitTransaction({
258+
const pendingCoinTransferTransaction = await aptos.transaction.signAndSubmitTransaction({
259259
transaction: coinTransferTransaction,
260260
signer: abstractedAccount,
261261
});
262262

263-
await aptos.waitForTransaction({ hash: pendingCoinTransferTransaction.hash });
263+
await aptos.waitForTransaction({ transactionHash: pendingCoinTransferTransaction.hash });
264264

265265
console.log("Coin transfer transaction submitted! ", pendingCoinTransferTransaction.hash);
266266
```

0 commit comments

Comments
 (0)