-
转账部分链接: https://github.com/v1xingyue/sui-shell/blob/abac75563ff67ffc16a09b622d2a013f5dc2eb5c/src/components/MyPool.tsx#L112 报错信息如下: The transaction inputs contain duplicated ObjectRef's | (RpcError:-5000) (code: -5000) 具体大家可以使用 https://sui-shell.vercel.app/ 测试。 错误可稳定复现。 |
Beta Was this translation helpful? Give feedback.
Answered by
v1xingyue
Jun 20, 2023
Replies: 2 comments 1 reply
-
只有星sir在认真学习的世界达成了 |
Beta Was this translation helpful? Give feedback.
1 reply
-
类型传递错误,需要传递 object的时候,需要使用 tx.object(objectID) 来操作。 循环部分代码改为: transferItems.forEach((item) => {
tx.moveCall({
target: CallTarget("coin_pool", "withdraw_to_address") as any,
typeArguments: [coinType],
arguments: [
tx.pure(item.amount),
tx.pure(item.address),
tx.object(operatePool.id), // 需要使用 tx.object
],
});
}); |
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
类型传递错误,需要传递 object的时候,需要使用 tx.object(objectID) 来操作。 循环部分代码改为: