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 for building tx with invalid Plutus script #4013

Closed
mkoura opened this issue Jun 7, 2022 · 0 comments · Fixed by #4088
Closed

[BUG] - cannot use transaction build for building tx with invalid Plutus script #4013

mkoura opened this issue Jun 7, 2022 · 0 comments · Fixed by #4088
Labels
bug Something isn't working comp: cardano-cli era: babbage priority low Issues/RPs that are low priority issues/PRs in relation to a minimum Shelley testnet and Shelley mai priority: low Would eventually require attention if time allows it. type: bug Something is not working Vasil

Comments

@mkoura
Copy link
Contributor

mkoura commented Jun 7, 2022

Internal

Area
Plutus Related to Plutus Scripts (Alonzo).

Summary
Building tx with invalid Plutus script using transaction build --script-invalid ... fails.

$ cardano-cli transaction build --tx-in
"64a8a791bba769599149f29a7b3f4a98a392648c4c9251a3c3ab59c0868ff23a#1" --tx-in-collateral
"64a8a791bba769599149f29a7b3f4a98a392648c4c9251a3c3ab59c0868ff23a#2" --tx-in-script-file
cardano_node_tests/tests/data/plutus/v1/always-fails.plutus --tx-in-datum-file
cardano_node_tests/tests/data/plutus/typed-42.datum --tx-in-redeemer-file
cardano_node_tests/tests/data/plutus/typed-42.redeemer --protocol-params-file pparams-gwpg.json
--tx-out "addr_test1vp842vatdp6qxqnhcfhh6w83t6c8c5udhua999slgzwcq2gvgpvm9+2000000" --script-invalid
--change-address addr_test1vrmet2lzexpmw78jpyqkuqs8ktg80x457h6wcnkp3z63etsx3pg70 --out-file
test_script_invalid_ci0_cbn_step2_tx.body --testnet-magic 42

Command failed: transaction build  Error: ScriptWitnessIndex (redeemer pointer):
ScriptWitnessIndexTxIn 0 is missing from the execution units (redeemer pointer) map: fromList []

Using transaction build-raw --script-invalid ... and then transaction submit works.

System info (please complete the following information):

  • OS Name: 35
  • Node version: 95c3692 (1.35.0-rc2)
@mkoura mkoura added the bug Something isn't working label Jun 7, 2022
@dorin100 dorin100 added the Vasil label Jun 8, 2022
@CarlosLopezDeLara CarlosLopezDeLara added the priority low Issues/RPs that are low priority issues/PRs in relation to a minimum Shelley testnet and Shelley mai label Jun 14, 2022
@iohk-bors iohk-bors bot closed this as completed in 21456bc Jun 24, 2022
@dorin100 dorin100 added type: bug Something is not working priority: low Would eventually require attention if time allows it. era: babbage comp: cardano-cli labels Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp: cardano-cli era: babbage priority low Issues/RPs that are low priority issues/PRs in relation to a minimum Shelley testnet and Shelley mai priority: low Would eventually require attention if time allows it. type: bug Something is not working Vasil
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants