diff --git a/cardano_node_tests/tests/tests_plutus_v2/test_mint_build.py b/cardano_node_tests/tests/tests_plutus_v2/test_mint_build.py index c97fb03e2..091785403 100644 --- a/cardano_node_tests/tests/tests_plutus_v2/test_mint_build.py +++ b/cardano_node_tests/tests/tests_plutus_v2/test_mint_build.py @@ -243,6 +243,15 @@ def test_minting_ref_one_token( plutus_costs=plutus_costs, expected_costs=[script_expected_fee["cost"]], ) + ref_size = cluster.g_query.get_ref_script_size(utxo=reference_utxo)["refInputScriptSize"] + expected_sizes = { + "v2": 1893, + "v3": 6, + } + expected_size = expected_sizes[plutus_version] + assert ref_size == expected_size, ( + f"Unexpected reference script size: expected {expected_size}, got {ref_size}" + ) @allure.link(helpers.get_vcs_link()) @common.PARAM_PLUTUS2ONWARDS_VERSION