-
封装如下的view 函数: #[view]
public fun add_two(a: u64): u64 {
a+2
} 部署完成后,modules 中提供导出函数: {
"name": "add_two",
"visibility": "public",
"is_entry": false,
"generic_type_params": [],
"params": [
"u64"
],
"return": [
"u64"
]
}, 使用 aptos-cli 调用
然后报错,报错信息如下:
|
Beta Was this translation helpful? Give feedback.
Answered by
v1xingyue
Mar 21, 2023
Replies: 1 comment
-
使用 aptos move view --function-id 13cc921c206e68563c70564ac222e8526f2fea21645ed166856ce8dd3e3ec281::todo::add_two --args u64:123 代替以上的命令 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
v1xingyue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用
aptos move view --function-id 13cc921c206e68563c70564ac222e8526f2fea21645ed166856ce8dd3e3ec281::todo::add_two --args u64:123
代替以上的命令