input-output-hk / marlowe-cardano

Marlowe smart contract language Cardano implementation
Apache License 2.0
90 stars 44 forks source link

--submit: cannot parse value `600' #570

Closed rhystmorgan closed 9 months ago

rhystmorgan commented 1 year ago

Summary

I am having trouble submitting transactions through marlowe-cli using

marlowe-cli run auto-execute

I am getting an error like this:

--submit 600 option --submit: cannot parse value `600'

--submit=600 option --submit: cannot parse value `600'

I am going through the zcb marlowe-cli example from youtube, which is why I tried a space before '='

Steps to reproduce

Steps to reproduce the behavior:

  1. latest version of marlowe-cli (installed today)
  2. following the video, init a zcb contract with params
  3. marlowe-cli run auto-execute ... the initial deposit
  4. See error

Expected behavior

Expected behavior is tx submitted to the blockchain, actual behavior: error.

I have also tried just signing the tx and submitting it through cardano-cli, but there is a separate error with that regarding the serialization format and ledger CDDL format

System info (please complete the following information):

Screenshots and attachments

Output in terminal:

marlowe-cli run auto-execute \

--marlowe-out-file marlowe-1.json \ --change-address addr_testxxxxxxxxxx \ --required-signer xxxxxxxxxx.skey \ --out-file tx1.signed \ --submit=600 option --submit: cannot parse value `600'

Usage: marlowe-cli run auto-execute ...

I also get the same issue with --submit 600

Additional context

I hope I am just missing something silly and there is something simple I can do to get it right

paluh commented 1 year ago

Thanks a lot for the detailed report. A quick workaround is to add s (like --submit=600s) to the value. A proper fix is on the way ;-)

rhystmorgan commented 1 year ago

That’s great thanks for responding so quickly, I’ll give it a go 👍

On Wed, 26 Apr 2023 at 08:36, paluh @.***> wrote:

Thanks a lot for the detailed report. A quick workaround is to add s (like --submit=600s) to the value. A proper fix is on the way ;-)

— Reply to this email directly, view it on GitHub https://github.com/input-output-hk/marlowe-cardano/issues/570#issuecomment-1522929748, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARZFDZMBYUXW3DZKAQBARPDXDDGAPANCNFSM6AAAAAAXLNHAVA . You are receiving this because you authored the thread.Message ID: @.***>

bwbush commented 1 year ago

Same as https://input-output.atlassian.net/browse/PLT-5844.

paluh commented 9 months ago

Fixed: https://github.com/input-output-hk/marlowe-cardano/pull/576