Skip to content

Commit 0209776

Browse files
include ratify
1 parent 6245d25 commit 0209776

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

cardano_node_tests/utils/governance_utils.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -870,19 +870,3 @@ def get_default_anchor_data() -> AnchorData:
870870
except FileExistsError:
871871
url = web.get_published_url(name="default_anchor.txt")
872872
return AnchorData(url=url, hash=data_hash, data_file=None)
873-
874-
875-
def check_ratified_action(
876-
*, ratify_state: dict[str, tp.Any], action_txid: str, action_ix: int = 0
877-
) -> dict[str, tp.Any]:
878-
"""Verify that the expected action (txid, ix) exists in the enacted governance actions."""
879-
enacted_actions = ratify_state.get("enactedGovActions", [])
880-
matched_action = _lookup_action(
881-
actions=enacted_actions,
882-
action_txid=action_txid,
883-
action_ix=action_ix,
884-
)
885-
if not matched_action:
886-
msg = f"Action ({action_txid}#{action_ix}) not found in enactedGovActions."
887-
raise AssertionError(msg)
888-
return matched_action

0 commit comments

Comments
 (0)