Move.

帖子

分享您的知识。

tomek.
Jan 18, 2025
专家问答

How to fix the error: MoveAbort in command 0?

I encountered an error when running a transaction, and the error message was 'Transaction failed with the following error. Dry run failed, could not automatically determine a budget: MoveAbort'. The error seems to originate in the 'option.move' module, specifically in the 'extract' function. It says 'Aborts if t does not hold a value'. What could be causing this and how can I fix it?

  • Move CLI
  • Move Bug
1
1
分享
评论
.

答案

1
Britain.
Jan 18 2025, 10:43

extract之所以发生错误,是因为option.move``t.is_some()断言失败时模块中的函数正在中止. 这意味着t该选项应该包含一个值,但在调用此函数时却没有. 在呼叫之前,请确保将该选项设置为 “一些” extract.

1
最佳答案
评论
.

你知道答案吗?

请登录并分享。

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148帖子231答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。

奖励活动七月