Burn (reverse mint) multi-assets in wallet #260
Closed
CardanoDur
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While going through utxos in a minting wallet, I noticed that all the assets that I want to burn are already multi-assets in the UTxO class. I was curious if there was a way to just grab the output multi-asset component of the utxo, multiply the quantity by -1 and use that as the mint?
Right now I'm going through each multi-asset to grab the quantity and multiplying by -1. Seems like a waste of code to build another multi-asset when I have the ones just sitting there.
Ideas?
Beta Was this translation helpful? Give feedback.
All reactions