Skip to content

Commit f382628

Browse files
committed
Provide --protocol-params-file in build-raw tests with Plutus scripts
cardano-api 11.0.0.0 (IntersectMBO/cardano-api#1181) makes `makeUnsignedTx` error when Plutus scripts are present but protocol parameters are missing, instead of silently omitting `script_data_hash`. Two existing tests built Plutus txs without `--protocol-params-file` and so now fail. Point both at the existing offline-protocol-params-preview.json fixture used by the other tests in the same module.
1 parent f81776f commit f382628

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

  • cardano-cli/test

cardano-cli/test/cardano-cli-golden/Test/Golden/TxView.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ hprop_golden_view_babbage_yaml =
159159
, inputDir </> "alonzo/scripts/mint.all"
160160
, "--mint-script-file"
161161
, inputDir </> "alonzo/scripts/mint.sig"
162+
, "--protocol-params-file"
163+
, "test/cardano-cli-test/files/input/calculate-min-fee/offline-protocol-params-preview.json"
162164
, "--out-file"
163165
, transactionBodyFile
164166
]

cardano-cli/test/cardano-cli-test/Test/Cli/Transaction/Build.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ hprop_conway_calculate_plutus_script_cost_offline =
143143
, "addr_test1wqvxuvh64q9zdqgrjt76d42eclk5wgdxtnsun4808cwg0dqxy2mj0+1000000"
144144
, "--fee"
145145
, "200000"
146+
, "--protocol-params-file"
147+
, "test/cardano-cli-test/files/input/calculate-min-fee/offline-protocol-params-preview.json"
146148
, "--out-file"
147149
, unsignedTx
148150
]

0 commit comments

Comments
 (0)