input-output-hk / voting-tools

Apache License 2.0
17 stars 10 forks source link

Wrong UTXO calculation with tokens on the payment address #24

Closed gitmachtl closed 2 years ago

gitmachtl commented 3 years ago

Looks like the current version of the voter-registration tool is having some issues calculating the right amount of lovelaces in the transaction when there are native asset on the payment address. The following error occured on a users tryout:

cardano-cli transaction submit --cardano-mode --mainnet --tx-file vote-registration.tx
Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 35777639 (fromList [(PolicyID {policyID = ScriptHash "98dc68b04026544619a251bc01aad2075d28433524ac36cbc75599a1"},fromList [("hosk",9)])])) (Value 35777639 (fromList []))))])
gitmachtl commented 2 years ago

this can be closed due to the latest release and the use of metadata files.