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({
27
27
// invoke 0x1::coin::withdraw. This function would return a value of a `coin` type.
28
28
const coin = await builder .addBatchedCalls ({
29
29
function: " 0x1::coin::withdraw" ,
30
- functionArguments: [CallArgument .new_signer (0 ), 1 ],
30
+ functionArguments: [CallArgument .newSigner (0 ), 1 ],
31
31
typeArguments: [" 0x1::aptos_coin::AptosCoin" ],
32
32
});
33
33
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const transaction = await aptos.transaction.build.scriptComposer({
27
27
// 调用 0x1::coin::withdraw,该函数会返回一个 `coin` 类型的值
28
28
const coin = await builder .addBatchedCalls ({
29
29
function: " 0x1::coin::withdraw" ,
30
- functionArguments: [CallArgument .new_signer (0 ), 1 ],
30
+ functionArguments: [CallArgument .newSigner (0 ), 1 ],
31
31
typeArguments: [" 0x1::aptos_coin::AptosCoin" ],
32
32
});
33
33
@@ -57,4 +57,4 @@ const transaction = await aptos.transaction.build.scriptComposer({
57
57
b. 如果返回值不具备 Copy 能力,则该返回值只能传递给后续调用一次
58
58
2 . 调用者需要确保将正确的值作为参数传递给后续调用。在前述示例中,` 0x1::coin::coin_to_fungible_asset ` 函数需要接收一个 ` Coin<AptosCoin> ` 类型的参数。
59
59
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