Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - cannot use transaction build command to build Shelley/Allegra era Tx in Babbage #4286

Open
mkoura opened this issue Aug 8, 2022 · 3 comments
Labels
8.0.0 issues in 8.0.0 bug Something isn't working comp: cardano-cli era: babbage tag: 1.35.3-rc1 type: bug Something is not working user type: internal Created by an IOG employee Vasil

Comments

@mkoura
Copy link
Contributor

mkoura commented Aug 8, 2022

Internal

Area
Other Any other topic (Delegation, Ranking, ...).

Summary
Building a Tx using transaction build --shelley-era / --allegra-era fails with

Command failed: transaction build  Error: Unable to cast era from BabbageEra to AllegraEra the value TxOutValue MultiAssetInBabbageEra (valueFromList [(AdaAssetId,1000000000)])

Expected behavior
Since #4135 is merged, it should be possible to use transaction build for building Tx from any past era.
Probably low prio, it is possible to use transaction build-raw.

System info (please complete the following information):

  • OS Name: Fedora 35
  • Node version: 1.35.3-rc1
  • CLI version: 1.35.3-rc1
@mkoura mkoura added the bug Something isn't working label Aug 8, 2022
@dorin100 dorin100 added the Vasil label Sep 3, 2022
@Jimbo4350
Copy link
Contributor

Is this still an issue? @mkoura

@mkoura
Copy link
Contributor Author

mkoura commented Jan 18, 2023

Still an issue in master:

cardano-cli transaction build --tx-in b643a3bb1d862b7651bff98526fab2852d6fd9ef77ba266c28ef19f5f8545330#0 --tx-out addr_test1vp42039xresr024rp7nj5r5rvp00s7xrhjlm7cgegxzd7uq60jr4l+1500000 --invalid-hereafter 85245 --change-address addr_test1vpw863tvxxdzpdxjq94jkvfk5pwayqx88fsnt8rrncg07rsd2st4s --out-file test_build_transfer_funds_ci0_nni_shelley_shelley_tx.body --shelley-era --testnet-magic 42

Command failed: transaction build Error: Transaction protocol parameters are not supported in Shelley

@CarlosLopezDeLara
Copy link
Contributor

Still not fixed in master.

Building this transaction with master fails:

cardano-cli --version
cardano-cli 1.36.0 - linux-x86_64 - ghc-8.10
git rev daeae61a005776ee7b7514ce47de3933074234a8

cardano-cli transaction build \
--shelley-era \
--testnet-magic 42 \
--invalid-hereafter $(expr $(cardano-cli query tip --testnet-magic 42 | jq .slot) + 1000) \
--tx-in $(cardano-cli query utxo --address $(cat utxo-keys/user1.payment.addr) --testnet-magic 42 --out-file  /dev/stdout | jq -r 'keys[]') \
--tx-out $(cat pool1/payment.addr)+50000000000000 \
--change-address $(cat utxo-keys/user1.payment.addr) \
--out-file transactions/tx3.raw
Command failed: transaction build  Error: Transaction protocol parameters are not supported in Shelley

but works fine with 1.35.5

./cardano-cli --version
cardano-cli 1.35.5 - linux-x86_64 - ghc-8.10
git rev 8762a10efe3f9f97939e3cb05edaf04250456702


./cardano-cli transaction build --shelley-era \
--testnet-magic 42 --invalid-hereafter $(expr $(cardano-cli query tip --testnet-magic 42 | jq .slot) + 1000) \
--tx-in $(cardano-cli query utxo --address $(cat utxo-keys/user1.payment.addr) \
--testnet-magic 42 --out-file  /dev/stdout | jq -r 'keys[]') --tx-out $(cat pool1/payment.addr)+50000000000000 \
--change-address $(cat utxo-keys/user1.payment.addr) \
--out-file transactions/tx3.raw
Estimated transaction fee: Lovelace 167129

Not big issue but is useful for testing.

@mkoura mkoura added the 8.0.0 issues in 8.0.0 label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0.0 issues in 8.0.0 bug Something isn't working comp: cardano-cli era: babbage tag: 1.35.3-rc1 type: bug Something is not working user type: internal Created by an IOG employee Vasil
Projects
None yet
Development

No branches or pull requests

4 participants