Move.

Publicación

Comparte tu conocimiento.

hohm.
Feb 17, 2025
P&R expertos

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
2
1
Cuota
Comentarios
.

Respuestas

1
Ramirez.
Feb 17 2025, 15:38

Este error suele producirse cuando se devuelve un objeto que no se gestionó correctamente al final de la transacción. Puedes encontrar información sobre cómo gestionar correctamente las opciones en las transacciones que utilizan MoveCall en este enlace: https://sdk.mystenlabs.com/typescript/transaction-building/basics#object-helpers

1
Comentarios
.

Sabes la respuesta?

Inicie sesión y compártalo.

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

148Publicaciones231Respuestas
Sui.X.Peera.

Gana tu parte de 1000 Sui

Gana puntos de reputación y obtén recompensas por ayudar a crecer a la comunidad de Sui.

Campaña de RecompensasJulio