@@ -1100,10 +1100,9 @@ def _check_resign_dbsync(res_member: clusterlib.CCMember) -> None:
11001100 gov_state = rat_add_gov_state , name_template = f"{ temp_template } _rat_add_{ rat_epoch } "
11011101 )
11021102 rat_action = governance_utils .lookup_ratified_actions (
1103- gov_state = rat_add_gov_state , action_txid = action_add_txid
1103+ state = rat_add_gov_state , action_txid = action_add_txid
11041104 )
11051105 assert rat_action , "Action not found in ratified actions"
1106-
11071106 # Disapprove ratified add action, the voting shouldn't have any effect
11081107 conway_common .cast_vote (
11091108 cluster_obj = cluster ,
@@ -1204,7 +1203,7 @@ def _check_resign_dbsync(res_member: clusterlib.CCMember) -> None:
12041203 # time as the add action is enacted, because ratification of new actions was delayed by
12051204 # the add action.
12061205 rat_action = governance_utils .lookup_ratified_actions (
1207- gov_state = enact_add_gov_state , action_txid = action_rem_txid
1206+ state = enact_add_gov_state , action_txid = action_rem_txid
12081207 )
12091208 assert rat_action , "Action not found in ratified actions"
12101209 reqc .cip038_01 .success ()
@@ -1468,7 +1467,7 @@ def _check_rat_gov_state(
14681467 gov_state = gov_state , name_template = f"{ name_template } _{ epoch_no } "
14691468 )
14701469 rat_action = governance_utils .lookup_ratified_actions (
1471- gov_state = gov_state , action_txid = action_txid , action_ix = action_ix
1470+ state = gov_state , action_txid = action_txid , action_ix = action_ix
14721471 )
14731472 assert rat_action , "Action not found in ratified actions"
14741473 return gov_state
@@ -1724,15 +1723,12 @@ def _check_rat_enact_state(
17241723 # Check ratification
17251724 epoch_rat = cluster .wait_for_epoch (epoch_no = approval_epoch + 1 , padding_seconds = 5 )
17261725
1727- rat_gov_state = cluster .g_query .get_gov_state ()
1728- conway_common .save_gov_state (
1729- gov_state = rat_gov_state , name_template = f"{ name_template } _rat_{ epoch_rat } "
1730- )
1731-
1732- rat_action = governance_utils .lookup_ratified_actions (
1733- gov_state = rat_gov_state , action_txid = action_txid
1726+ rat_state = cluster .g_query .get_ratify_state ()
1727+ rat_action_direct = governance_utils .lookup_ratified_actions (
1728+ state = rat_state ,
1729+ action_txid = action_txid ,
17341730 )
1735- assert rat_action , "Action not found in ratified actions"
1731+ assert rat_action_direct , "Action not found in ratified actions (ratify-state) "
17361732
17371733 # Wait for enactment
17381734 epoch_enact = cluster .wait_for_epoch (epoch_no = epoch_rat + 1 , padding_seconds = 5 )
0 commit comments