Skip to content

Commit

Permalink
always munch from dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
BIP Bot committed Jul 29, 2023
1 parent bf9c834 commit fa36712
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bal_addresses/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,12 @@ def populate_deployments(self) -> None:
f"{GITHUB_DEPLOYMENTS_RAW}/addresses/{self.chain}.json"
)
if chain_deployments.ok:
self._deployments = Munch()
# Remove date from key
processed_deployment = self._process_deployment(chain_deployments.json())
self._deployments = Munch.fromDict(processed_deployment)
else:
print(f"Warning: No deploys for chain {self.chain}")
return Munch
return Munch.fromDict({})

def _process_deployment(self, deployment: Dict) -> Dict:
"""
Expand Down Expand Up @@ -150,7 +149,7 @@ def populate_extras(self) -> None:
self._extras = Munch.fromDict(self.checksum_address_dict(chain_extras.json()))
else:
print(f"Warning: No extras for chain {self.chain}, multisigs must be added in extras/chain.json")
self._extras = Munch
self._extras = Munch.fromDict({})
def populate_eoas(self) -> None:
eoas = requests.get(
f"{GITHUB_RAW_EXTRAS}/signers.json"
Expand Down

0 comments on commit fa36712

Please sign in to comment.