From 12edcfe5997ac89e1b66bbcb35353f84ee69090a Mon Sep 17 00:00:00 2001 From: femi Date: Wed, 12 Nov 2025 12:12:12 +0000 Subject: [PATCH 1/3] test_mint_build.py --- cardano_node_tests/tests/tests_plutus_v2/test_mint_build.py | 6 ++++++ 1 file changed, 6 insertions(+) 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..ab884befd 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 @@ -244,6 +244,12 @@ def test_minting_ref_one_token( expected_costs=[script_expected_fee["cost"]], ) + ref_size_data = cluster.g_query.get_ref_script_size(utxo=reference_utxo) + + ref_size = ref_size_data.get("refScriptSize") or ref_size_data.get("refInputScriptSize") + assert ref_size is not None, f"Missing refScriptSize field in output: {ref_size_data}" + assert ref_size >= 0, f"refScriptSize must be non-negative, got {ref_size}" + @allure.link(helpers.get_vcs_link()) @common.PARAM_PLUTUS2ONWARDS_VERSION @pytest.mark.smoke From 106d6e3212df3133f9e4f522ef13f3204c209bf1 Mon Sep 17 00:00:00 2001 From: femi Date: Thu, 13 Nov 2025 11:45:34 +0000 Subject: [PATCH 2/3] test_mint_build.py --- .../tests/tests_plutus_v2/test_mint_build.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 ab884befd..387b3b2ae 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 @@ -246,9 +246,19 @@ def test_minting_ref_one_token( ref_size_data = cluster.g_query.get_ref_script_size(utxo=reference_utxo) - ref_size = ref_size_data.get("refScriptSize") or ref_size_data.get("refInputScriptSize") - assert ref_size is not None, f"Missing refScriptSize field in output: {ref_size_data}" - assert ref_size >= 0, f"refScriptSize must be non-negative, got {ref_size}" + ref_size = ref_size_data.get("refInputScriptSize") + assert ref_size is not None, f"Missing refInputScriptSize field in output: {ref_size_data}" + + expected_sizes = { + "v2": 1893, + "v3": 6, + } + expected_size = expected_sizes.get(plutus_version) + assert expected_size is not None, f"Unexpected Plutus version: {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 From 5f618d1455c6aa8ee85fd533d39fcdcca513c6a6 Mon Sep 17 00:00:00 2001 From: femi Date: Wed, 19 Nov 2025 11:22:11 +0000 Subject: [PATCH 3/3] test_mint_build.py --- .../tests/tests_plutus_v2/test_mint_build.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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 387b3b2ae..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,19 +243,12 @@ def test_minting_ref_one_token( plutus_costs=plutus_costs, expected_costs=[script_expected_fee["cost"]], ) - - ref_size_data = cluster.g_query.get_ref_script_size(utxo=reference_utxo) - - ref_size = ref_size_data.get("refInputScriptSize") - assert ref_size is not None, f"Missing refInputScriptSize field in output: {ref_size_data}" - + ref_size = cluster.g_query.get_ref_script_size(utxo=reference_utxo)["refInputScriptSize"] expected_sizes = { "v2": 1893, "v3": 6, } - expected_size = expected_sizes.get(plutus_version) - assert expected_size is not None, f"Unexpected Plutus version: {plutus_version}" - + expected_size = expected_sizes[plutus_version] assert ref_size == expected_size, ( f"Unexpected reference script size: expected {expected_size}, got {ref_size}" )