Im creating a transaction using this code:
const tx = { txIn: wallet.balance().utxo, txOut: [ { address: wallet.paymentAddr, value: { ...wallet.balance().value, [MARCELOCOIN]: 1 }, } ], minting: [ { action: 'mint', quantity: 100, asset: MARCELOCOIN, script: mintScript }, ], witnessCount: 2, };
when i try to create the Raw arquive with:
let raw = cardanocliJs.transactionBuildRaw(tx);
It gives me the following error:
option --tx-out: unexpected "N" expecting white space or quantity (word64)
Error: Command failed: cardano-cli transaction build-raw --tx-in 5896209b2eb8eb2e3b19e06335e787c9856661087e6796fd5f483f0a30b923cc#0 --tx-in c6b914dfd086ac8e776c91ea615e847d1e7dc6f447a8cca467371de506ab64a7#1 --tx-out "addr_test1qqmjrep08v07cjn4t3852hr54czxw4m2dyv7wynkk3ufl63xjyzlpj9g68r0n0q3sfgc9vtt8z48z7yff3a4lh9kp2fqa0ccru+998825875+NaN undefined+1 43ad91053eb32da8884e1e5c4b67865d5f46f90072110c8e233261b9.MarceloCoin" --invalid-hereafter 38296439 --invalid-before 0 --fee 0 --out-file /home/cnode/minter/minter/tmp/tx_4ue4nzska.raw
So you see that there is a 'undefined' inside tx-out. I don't know whats the problem.. Can you help me?