Post
Share your knowledge.
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
Answers
1The MoveAbort error you are facing typically occurs if the type passed to the create_currency
function doesn't match expectations. From what you've described, it looks like you're passing an incorrectly formed one-time witness (OTW) to the function. The one-time witness should be named after the module in all uppercase letters. Make sure your OTW follows this convention, and you should be able to resolve the error. For more details, you can check this definition: move-book.com/programmability/one-time-witness.html#definition.
Do you know the answer?
Please log in and share it.
Move is an executable bytecode language used to implement custom transactions and smart contracts.

- ... SUIderiss+5
- ... SUIRamirez+5
- ... SUIElvin CLONE +5
- ... SUI
- ... SUI
- ... SUI
- ... SUIBritain+2