File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
cardano_node_tests/tests/tests_plutus_v2 Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -243,19 +243,12 @@ def test_minting_ref_one_token(
243243 plutus_costs = plutus_costs ,
244244 expected_costs = [script_expected_fee ["cost" ]],
245245 )
246-
247- ref_size_data = cluster .g_query .get_ref_script_size (utxo = reference_utxo )
248-
249- ref_size = ref_size_data .get ("refInputScriptSize" )
250- assert ref_size is not None , f"Missing refInputScriptSize field in output: { ref_size_data } "
251-
246+ ref_size = cluster .g_query .get_ref_script_size (utxo = reference_utxo )["refInputScriptSize" ]
252247 expected_sizes = {
253248 "v2" : 1893 ,
254249 "v3" : 6 ,
255250 }
256- expected_size = expected_sizes .get (plutus_version )
257- assert expected_size is not None , f"Unexpected Plutus version: { plutus_version } "
258-
251+ expected_size = expected_sizes [plutus_version ]
259252 assert ref_size == expected_size , (
260253 f"Unexpected reference script size: expected { expected_size } , got { ref_size } "
261254 )
You can’t perform that action at this time.
0 commit comments