This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const transaction = await aptos.transaction.build.scriptComposer({
2727 // invoke 0x1::coin::withdraw. This function would return a value of a `coin` type.
2828 const coin = await builder .addBatchedCalls ({
2929 function: " 0x1::coin::withdraw" ,
30- functionArguments: [CallArgument .new_signer (0 ), 1 ],
30+ functionArguments: [CallArgument .newSigner (0 ), 1 ],
3131 typeArguments: [" 0x1::aptos_coin::AptosCoin" ],
3232 });
3333
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const transaction = await aptos.transaction.build.scriptComposer({
2727 // 调用 0x1::coin::withdraw,该函数会返回一个 `coin` 类型的值
2828 const coin = await builder .addBatchedCalls ({
2929 function: " 0x1::coin::withdraw" ,
30- functionArguments: [CallArgument .new_signer (0 ), 1 ],
30+ functionArguments: [CallArgument .newSigner (0 ), 1 ],
3131 typeArguments: [" 0x1::aptos_coin::AptosCoin" ],
3232 });
3333
@@ -57,4 +57,4 @@ const transaction = await aptos.transaction.build.scriptComposer({
5757 b. 如果返回值不具备 Copy 能力,则该返回值只能传递给后续调用一次
58582 . 调用者需要确保将正确的值作为参数传递给后续调用。在前述示例中,` 0x1::coin::coin_to_fungible_asset ` 函数需要接收一个 ` Coin<AptosCoin> ` 类型的参数。
5959
60- 这实现了 [ AIP-102] ( https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-102.md ) 规范
60+ 这实现了 [ AIP-102] ( https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-102.md ) 规范
You can’t perform that action at this time.
0 commit comments