Closed aleeusgr closed 1 year ago
Error: transaction doesn't have enough inputs to cover the outputs + fees + minLovelace
https://www.hyperion-bt.org/helios-book/api/reference/tx.html?highlight=addcoll#addcollateral
https://www.hyperion-bt.org/helios-book/api/reference/networkparams.html
I get an error in https://github.com/aleeusgr/potential-robot/blob/d799586672f3daf1ce59a769a35256435468c24b/tests/helios-vesting-cancel.test.ts#L135
Error: transaction doesn't have enough inputs to cover the outputs + fees + minLovelace
```shell { + origOutput: { + address: { + bech32: 'addr_test1vz2a83z0d5gceyghfrjqpaqu2f98evk8q6swje2c5ddqmaca2vhfl', + hex: '6095d3c44f6d118c911748e400f41c524a7cb2c706a0e96558a35a0df7', + }, + datum: null, + refScript: null, + value: { + assets: {}, + lovelace: '59747752', + }, + }, + txId: '28e8c61f4da31df8541b4fca272dd66b6fb258404bba7a8c8d7fc75d7b00c5ef', + utxoIdx: '1', + } ```
```shell { + origOutput: { + address: { + bech32: 'addr_test1wqzs96thkxedr0jpak4ar9qp6ew58uwexmuz99ah93ckv0q6z8ey4', + hex: '700502e977b1b2d1be41edabd19401d65d43f1d936f82297b72c71663c', + }, + datum: { + inlineCbor: '9f581c95d3c44f6d118c911748e400f41c524a7cb2c706a0e96558a35a0df7581c3b61a40bc5872219ce830fb9c792d8 d53fb87921f590287057e4e3b41b000001867b8b7b00ff', + inlineSchema: { + list: [ + { + bytes: '95d3c44f6d118c911748e400f41c524a7cb2c706a0e96558a35a0df7', + }, + { + bytes: '3b61a40bc5872219ce830fb9c792d8d53fb87921f590287057e4e3b4', + }, + { + int: 1677109984000, + }, + ], + }, + }, refScript: null, + value: { + assets: { + '49b106e698de78171de2faf35932635e1085c12508ca87718a2d4487': { + '56657374696e67204b6579': '1', + }, + }, + lovelace: '10000000', + }, + }, + txId: '28e8c61f4da31df8541b4fca272dd66b6fb258404bba7a8c8d7fc75d7b00c5ef', + utxoIdx: '0', + } ```
Error: tx invalid (not finalized or slot out of range) ❯ assert node_modules/@hyperionbt/helios/helios.js:282:9 ❯ NetworkEmulator.submitTx node_modules/@hyperionbt/helios/helios.js:38456:9 ❯ tests/helios-vesting-cancel.test.ts:137:30 135| 136| await tx.finalize(networkParams, ownerAddress, [spareUtxo]); 137| const txId = await network.submitTx(tx);