帖子
分享您的知识。
Pluto Dev👽141
Jan 22, 2025
专家问答
How to fix MoveAbort error in `create_currency` function?
I'm trying to create a coin using the create_currency
function in my smart contract and encountering a MoveAbort error. The error message indicates a problem with MoveLocation
referencing the coin
module and create_currency
function. I'm not sure what's causing the issue. Any ideas on what could be going wrong here?
- Move CLI
1
1
分享
评论
答案
1Jan 23 2025, 00:00
您面临的 moveAbort 错误通常发生在传递给create_currency
函数的类型不符合预期时. 从你的描述来看,你似乎在向函数传递一个格式错误的一次性见证人 (OTW). 一次性证人应以模块命名,全部使用大写字母. 确保你的 OTW 遵循这个惯例,你应该能够解决这个错误. 欲了解更多详情,你可以查看这个定义:move-book.com/programbility/one-time-witness.html #definition.
1
评论
你知道答案吗?
请登录并分享。
Move is an executable bytecode language used to implement custom transactions and smart contracts.
148帖子231答案