Move.

Bài viết

Chia sẻ kiến thức của bạn.

tomek.
Jan 18, 2025
Hỏi đáp Chuyên Gia

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
Chia sẻ
Bình luận
.

Câu trả lời

1
Britain.
Jan 18 2025, 10:43

extractLỗi xảy ra do option.movehàm trong m t.is_some()ô-đun bị hủy khi xác nhận thất bại. Điều này có nghĩa tlà tùy chọn dự kiến sẽ giữ một giá trị, nhưng nó không có tại thời điểm hàm này được gọi. Đảm bảo rằng tùy chọn được đặt thành “một số” trước khi gọiextract.

1
Câu trả lời hay nhất
Bình luận
.

Bạn có biết câu trả lời không?

Hãy đăng nhập và chia sẻ nó.

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

148Bài viết231Câu trả lời
Sui.X.Peera.

Kiếm phần của bạn từ 1000 Sui

Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.

Chiến dịch phần thưởngTháng Bảy