Bài viết
Chia sẻ kiến thức của bạn.
How to fix 'UnusedValueWithoutDrop' error in PTB function?
I'm trying to create a contract interaction function similar to a given transaction hash but face an error during execution. The error message is UnusedValueWithoutDrop { result_idx: 0, secondary_idx: 0 }
. It appears in the dry run result of the PTB function. I suspect it might be due to an object not being properly handled by the end of the transaction. I attempted to use MoveCall
, but I'm not sure if my approach is correct. Can someone advise me on correctly handling this issue?
- Move CLI
- Move
Câu trả lời
1Lỗi này thường xảy ra khi có một đối tượng được trả về mà không được xử lý đúng cách vào cuối giao dịch. Bạn có thể tìm thấy hướng dẫn về cách xử lý các tùy chọn đúng cách trong các giao dịch sử dụng MoveCall tại liên kết này: https://sdk.mystenlabs.com/typescript/transaction-building/basics#object-helpers
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.