Publication
Partagez vos connaissances.
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
Réponses
1Cette erreur se produit généralement lorsqu'un objet renvoyé n'a pas été correctement géré à la fin de la transaction. Vous trouverez des conseils sur la gestion correcte des options dans les transactions à l'aide de MoveCall sur ce lien : https://sdk.mystenlabs.com/typescript/transaction-building/basics#object-helpers
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.
Move is an executable bytecode language used to implement custom transactions and smart contracts.