Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tritium committed Jul 25, 2023
1 parent 51ebcfd commit 9ada6ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bal_addresses/gen_addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def write_addressbooks(chainlist=AddrBook.CHAIN_IDS_BY_NAME.keys()):
json.dump(reverse_dict(flatbook), f, indent=3)

def main():
chains = AddrBook.chains. print(f"Generating new addressbook jsons for {chains}")
chains = AddrBook.CHAIN_IDS_BY_NAME.keys()
print(f"Generating new addressbook jsons for {chains}")
write_addressbooks(chains)

if __name__ == "__main__":
Expand Down
3 changes: 2 additions & 1 deletion bal_addresses/generate_current_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pandas as pd
import os
from addresses import AddrBook
from permissions import BalPermissions
from web3 import Web3
import datetime

Expand All @@ -27,7 +28,7 @@ def build_chain_permissions_list(chain_name):
r = a.flatbook
results = {}
address_names = a.reversebook
action_ids_list = f"{a.GITHUB_DEPLOYMENTS_RAW}/action-ids/{chain_name}/action-ids.json"
action_ids_list = f"{BalPermissions.GITHUB_DEPLOYMENTS_RAW}/action-ids/{chain_name}/action-ids.json"
w3 = w3_by_chain[chain_name]
authorizer = w3.eth.contract(address=r["20210418-authorizer/Authorizer"], abi=json.load(open("bal_addresses/abis/Authorizer.json")))
try:
Expand Down

0 comments on commit 9ada6ae

Please sign in to comment.