@@ -1122,6 +1122,14 @@ def test_mix_reference_attached_script(
1122
1122
script_txins = plutus_txins ,
1123
1123
)
1124
1124
1125
+ plutus_cost = cluster .calculate_plutus_script_cost (
1126
+ src_address = payment_addrs [0 ].address ,
1127
+ tx_name = f"{ temp_template } _step2" ,
1128
+ tx_files = tx_files_redeem ,
1129
+ txouts = txouts_redeem ,
1130
+ script_txins = plutus_txins ,
1131
+ )
1132
+
1125
1133
tx_signed = cluster .sign_tx (
1126
1134
tx_body_file = tx_output_redeem .out_file ,
1127
1135
signing_key_files = tx_files_redeem .signing_key_files ,
@@ -1136,6 +1144,12 @@ def test_mix_reference_attached_script(
1136
1144
cluster .get_utxo (utxo = script_utxos1 [0 ]) or cluster .get_utxo (utxo = script_utxos2 [0 ])
1137
1145
), f"Script address UTxOs were NOT spent - `{ script_utxos1 } ` and `{ script_utxos2 } `"
1138
1146
1147
+ # check that the script hash is included for all scripts
1148
+ for script in plutus_cost :
1149
+ assert script .get (
1150
+ "scriptHash"
1151
+ ), "Missing script hash on calculate-plutus-script-cost result"
1152
+
1139
1153
@allure .link (helpers .get_vcs_link ())
1140
1154
@pytest .mark .parametrize ("script_type" , ("simple" , "plutus_v1" , "plutus_v2" ))
1141
1155
def test_spend_reference_script (
0 commit comments