@@ -353,7 +353,7 @@ def test_register_and_retire_drep(
353353 * Check that deposit was returned to source address
354354 """
355355 temp_template = common .get_test_id (cluster )
356- deposit_drep_amt = cluster .conway_genesis [ "dRepDeposit" ]
356+ deposit_drep_amt = cluster .g_query . get_drep_deposit ()
357357
358358 # Make sure there's enought funds on the payment address on long running
359359 # testnets where the DRep deposit is higher.
@@ -629,7 +629,7 @@ def test_no_witness_register_and_retire( # noqa: C901
629629 * Check that DRep was retired
630630 """
631631 temp_template = common .get_test_id (cluster )
632- deposit_drep_amt = cluster .conway_genesis [ "dRepDeposit" ]
632+ deposit_drep_amt = cluster .g_query . get_drep_deposit ()
633633
634634 # Make sure there's enought funds on the payment address on long running
635635 # testnets where the DRep deposit is higher.
@@ -772,8 +772,9 @@ def test_no_multiple_delegation(
772772 """
773773 cluster = cluster_rewards
774774 temp_template = common .get_test_id (cluster )
775- deposit_address_amt = cluster .g_query .get_address_deposit ()
776- deposit_drep_amt = cluster .conway_genesis ["dRepDeposit" ]
775+ pparams = cluster .g_query .get_protocol_params ()
776+ deposit_address_amt = cluster .g_query .get_address_deposit (pparams = pparams )
777+ deposit_drep_amt = cluster .g_query .get_drep_deposit (pparams = pparams )
777778
778779 # Make sure there's enought funds on the payment address on long running
779780 # testnets where the DRep deposit is higher.
@@ -927,7 +928,7 @@ def test_drep_no_retirement_before_register(
927928 * Check that it is not possible to retire before registering the DRep
928929 """
929930 temp_template = common .get_test_id (cluster )
930- deposit_drep_amt = cluster .conway_genesis [ "dRepDeposit" ]
931+ deposit_drep_amt = cluster .g_query . get_drep_deposit ()
931932
932933 drep_keys = cluster .g_conway_governance .drep .gen_key_pair (
933934 key_name = temp_template , destination_dir = "."
@@ -981,7 +982,7 @@ def test_drep_no_multiple_registration(
981982 * Expect ConwayDRepAlreadyRegistered on the second time
982983 """
983984 temp_template = common .get_test_id (cluster )
984- deposit_drep_amt = cluster .conway_genesis [ "dRepDeposit" ]
985+ deposit_drep_amt = cluster .g_query . get_drep_deposit ()
985986
986987 # Make sure there's enought funds on the payment address on long running
987988 # testnets where the DRep deposit is higher.
@@ -1445,8 +1446,9 @@ def test_change_delegation(
14451446 """
14461447 cluster = cluster_rewards
14471448 temp_template = common .get_test_id (cluster )
1448- deposit_address_amt = cluster .g_query .get_address_deposit ()
1449- deposit_drep_amt = cluster .conway_genesis ["dRepDeposit" ]
1449+ pparams = cluster .g_query .get_protocol_params ()
1450+ deposit_address_amt = cluster .g_query .get_address_deposit (pparams = pparams )
1451+ deposit_drep_amt = cluster .g_query .get_drep_deposit (pparams = pparams )
14501452
14511453 # Make sure there's enought funds on the payment address on long running
14521454 # testnets where the DRep deposit is higher.
0 commit comments