Skip to content

Commit

Permalink
fix: different registry versions have different event keys
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Sep 11, 2023
1 parent 11cec69 commit 6ebc383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yearn/v2/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def load_registry(self):
if hasattr(r, 'releaseRegistry') and "ReleaseRegistryUpdated" in r.topics:
logs = get_logs_asap(str(r), [r.topics["ReleaseRegistryUpdated"]])
# Add all past and present Release Registries
registries.extend({contract(event['address']) for event in decode_logs(logs)})
registries.extend({contract(list(event.values())[0]) for event in decode_logs(logs)})
return registries

def load_from_ens(self):
Expand Down

0 comments on commit 6ebc383

Please sign in to comment.