@@ -1105,6 +1105,14 @@ def test_mix_reference_attached_script(
1105
1105
script_txins = plutus_txins ,
1106
1106
)
1107
1107
1108
+ plutus_cost = cluster .calculate_plutus_script_cost (
1109
+ src_address = payment_addrs [0 ].address ,
1110
+ tx_name = f"{ temp_template } _step2" ,
1111
+ tx_files = tx_files_redeem ,
1112
+ txouts = txouts_redeem ,
1113
+ script_txins = plutus_txins ,
1114
+ )
1115
+
1108
1116
tx_signed = cluster .sign_tx (
1109
1117
tx_body_file = tx_output_redeem .out_file ,
1110
1118
signing_key_files = tx_files_redeem .signing_key_files ,
@@ -1119,6 +1127,12 @@ def test_mix_reference_attached_script(
1119
1127
cluster .get_utxo (utxo = script_utxos1 [0 ]) or cluster .get_utxo (utxo = script_utxos2 [0 ])
1120
1128
), f"Script address UTxOs were NOT spent - `{ script_utxos1 } ` and `{ script_utxos2 } `"
1121
1129
1130
+ # check that the script hash is included for all scripts
1131
+ for script in plutus_cost :
1132
+ assert script .get (
1133
+ "scriptHash"
1134
+ ), "Missing script hash on calculate-plutus-script-cost result"
1135
+
1122
1136
@allure .link (helpers .get_vcs_link ())
1123
1137
@pytest .mark .parametrize ("script_type" , ("simple" , "plutus_v1" , "plutus_v2" ))
1124
1138
def test_spend_reference_script (
0 commit comments