File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ Once you have created the abstracted account, you can use it to sign transaction
246
246
is the same as the abstracted account's address.
247
247
248
248
``` ts
249
- const coinTransferTransaction = new aptos .transaction .build .simple ({
249
+ const coinTransferTransaction = await aptos .transaction .build .simple ({
250
250
sender: abstractedAccount .accountAddress ,
251
251
data: {
252
252
function: " 0x1::coin::transfer" ,
@@ -255,12 +255,12 @@ const coinTransferTransaction = new aptos.transaction.build.simple({
255
255
},
256
256
});
257
257
258
- const pendingCoinTransferTransaction = aptos .transaction .signAndSubmitTransaction ({
258
+ const pendingCoinTransferTransaction = await aptos .transaction .signAndSubmitTransaction ({
259
259
transaction: coinTransferTransaction ,
260
260
signer: abstractedAccount ,
261
261
});
262
262
263
- await aptos .waitForTransaction ({ hash : pendingCoinTransferTransaction .hash });
263
+ await aptos .waitForTransaction ({ transactionHash : pendingCoinTransferTransaction .hash });
264
264
265
265
console .log (" Coin transfer transaction submitted! " , pendingCoinTransferTransaction .hash );
266
266
```
You can’t perform that action at this time.
0 commit comments