miguelaeh/cardanocli-js

UtxoFailure

Closed this issue · 1 comments

hello, I am getting the following error when trying to mint an nft on the alonzo testnet

Error: Command failed: cardano-cli transaction submit --testnet-magic 1097911063 --tx-file /home/devperson/cardano/minter/tmp/tx_6fm1ra6a9.signed Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 989638638 (fromList [])) (Value 989638638 (fromList [(PolicyID {policyID = ScriptHash "01c1e8eafb77ecb39d6e941a413de4a94537ecffe8fa90e494d0821b"},fromList [("TestAsset",1)])])))))])

Unless i have mistook the error, It looks from above that when the transaction is submitted the script has not removed the fee (Value 989638638 is equal to the opening balance on the wallet).

But when I log out transactionBuildRaw it appears to be correct:

  • the first time it runs, the fee is 0 because it's the first time the transaction is built
  • the second time it runs, the fee is ~1.2 ada, which appears correct.

does anyone know whether this error can be corrected? I have following the mint example in the repo.

i swapped over from testnet-alonzo-genesis to testnet-shelley-genesis and that has resolved the issue for me, is there any way that i could make it work on Alonzo though?