Skip to content

Commit

Permalink
Add temporary committee file link (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi authored Mar 7, 2022
1 parent b493c5b commit 488a89b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions stakewise_cli/eth1.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ def get_operators_committee(network: str) -> List[List[str]]:
node_id = get_ens_node_id(NETWORKS[network]["DAO_ENS_NAME"])
ens_text_record = NETWORKS[network]["OPERATORS_COMMITTEE_ENS_KEY"]

committee_config_url = ens_resolver.functions.text(node_id, ens_text_record).call(
block_identifier="latest"
)
# TODO: remove once committee approved by DAO to mainnet ENS record
if network == MAINNET:
committee_config_url = "ipfs://QmcxbqLSC1NvjfCDPGMP93R2zRdrUMH9Ge5pFarDtM53iM"
else:
committee_config_url = ens_resolver.functions.text(
node_id, ens_text_record
).call(block_identifier="latest")

return ipfs_fetch(committee_config_url)

Expand Down

0 comments on commit 488a89b

Please sign in to comment.