diff --git a/cardano_node_tests/tests/test_plutus_v2_spend_build.py b/cardano_node_tests/tests/test_plutus_v2_spend_build.py index 2f7fc8a99..f0add298d 100644 --- a/cardano_node_tests/tests/test_plutus_v2_spend_build.py +++ b/cardano_node_tests/tests/test_plutus_v2_spend_build.py @@ -1105,6 +1105,14 @@ def test_mix_reference_attached_script( script_txins=plutus_txins, ) + plutus_cost = cluster.calculate_plutus_script_cost( + src_address=payment_addrs[0].address, + tx_name=f"{temp_template}_step2", + tx_files=tx_files_redeem, + txouts=txouts_redeem, + script_txins=plutus_txins, + ) + tx_signed = cluster.sign_tx( tx_body_file=tx_output_redeem.out_file, signing_key_files=tx_files_redeem.signing_key_files, @@ -1119,6 +1127,12 @@ def test_mix_reference_attached_script( cluster.get_utxo(utxo=script_utxos1[0]) or cluster.get_utxo(utxo=script_utxos2[0]) ), f"Script address UTxOs were NOT spent - `{script_utxos1}` and `{script_utxos2}`" + # check that the script hash is included for all scripts + for script in plutus_cost: + assert script.get( + "scriptHash" + ), "Missing script hash on calculate-plutus-script-cost result" + @allure.link(helpers.get_vcs_link()) @pytest.mark.parametrize("script_type", ("simple", "plutus_v1", "plutus_v2")) def test_spend_reference_script(