Skip to content

Misleading error when minting value is 0 #71

@t4ccer

Description

@t4ccer

When user tries to submit transaction that mints 0 of particular token returned error is InsufficientFunds:

Contract failed with ContractExecutionError
          "WalletError (InsufficientFunds \"ExitCode 1: Missing: --mint VALUE\\n\\nUsage: cardano-cli transaction build-raw \\n            [ --byron-era\\n            | --shelley-era\\n            | --allegra-era\\n            | --mary-era\\n            | --alonzo-era\\n            ]\\n            [--script-valid | --script-invalid]\\n            (--tx-in TX-IN\\n              [--tx-in-script-file FILE\\n                [(--tx-in-datum-file FILE | --tx-in-datum-value JSON VALUE)\\n                  ( --tx-in-redeemer-file FILE\\n                  | --tx-in-redeemer-value JSON VALUE\\n                  )\\n                  --tx-in-execution-units (INT, INT)]])\\n            [--tx-in-collateral TX-IN]\\n            [--required-signer FILE | --required-signer-hash HASH]\\n            [--tx-out ADDRESS VALUE\\n              [ --tx-out-datum-hash HASH\\n              | --tx-out-datum-hash-file FILE\\n              | --tx-out-datum-hash-value JSON VALUE\\n              | --tx-out-datum-embed-file FILE\\n              | --tx-out-datum-embed-value JSON VALUE\\n              ]]\\n            [--mint VALUE\\n              (--mint-script-file FILE\\n                [(--mint-redeemer-file FILE | --mint-redeemer-value JSON VALUE)\\n                  --mint-execution-units (INT, INT)])]\\n            [--invalid-before SLOT]\\n            [--invalid-hereafter SLOT]\\n            [--fee LOVELACE]\\n            [--certificate-file CERTIFICATEFILE\\n              [--certificate-script-file FILE\\n                [\\n                  ( --certificate-redeemer-file FILE\\n                  | --certificate-redeemer-value JSON VALUE\\n                  )\\n                  --certificate-execution-units (INT, INT)]]]\\n            [--withdrawal WITHDRAWAL\\n              [--withdrawal-script-file FILE\\n                [\\n                  ( --withdrawal-redeemer-file FILE\\n                  | --withdrawal-redeemer-value JSON VALUE\\n                  )\\n                  --withdrawal-execution-units (INT, INT)]]]\\n            [--json-metadata-no-schema | --json-metadata-detailed-schema]\\n            [--auxiliary-script-file FILE]\\n            [--metadata-json-file FILE | --metadata-cbor-file FILE]\\n            [--genesis FILE | --protocol-params-file FILE]\\n            [--update-proposal-file FILE]\\n            --out-file FILE\\n\\n  Build a transaction (low-level, inconvenient)\\n\\n  \\ESC[93mPlease note the order of some cmd options is crucial. If used incorrectly may produce undesired tx body. See nested [] notation above for details.\\ESC[0;22;23;24m\\n\")"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions