帖子
分享您的知识。
How can I merge Sui coins for a move call without gas issues?
I'm trying to make a move call where one argument requires a mutable Coin
- Move CLI
- Move
答案
2你试过使用merge coins
功能吗?它有可能在不造成任何与汽油要求冲突的情况下合并您的硬币. 添加此功能是为了减少手动硬币管理的麻烦. 该过程旨在代表您在交易中想要的内容,同时将硬币的来源推迟到您建立并签署交易之前.
您无需手动管理硬币. 您可以简单地使用coinWithBalance
,SDK将自动为您查找和合并硬币. 尝试指定要用于单独支付费用的硬币,因为这可能会解决汽油的问题. 以下是 SDK 文档链接,了解更多信息:汽油支付.
你知道答案吗?
请登录并分享。
Move is an executable bytecode language used to implement custom transactions and smart contracts.