Skip to content

Commit 5f618d1

Browse files
test_mint_build.py
1 parent 106d6e3 commit 5f618d1

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

cardano_node_tests/tests/tests_plutus_v2/test_mint_build.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)