From 4779924ed105362e67c2b467bba51f4d659ca7a7 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Mon, 8 Apr 2024 21:13:09 +0000 Subject: [PATCH] fix: adapt to new ypm api --- yearn/abis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yearn/abis.py b/yearn/abis.py index 298f84449..1e54169b7 100644 --- a/yearn/abis.py +++ b/yearn/abis.py @@ -43,7 +43,8 @@ def __validate_unitroller_abis() -> None: ''' good: List[Contract] = [] bad: List[Contract] = [] - for address in compound.TROLLERS.values(): + for troller in compound.trollers.values(): + address = troller.address # We use `Contract` instead of `contract` here so # we don't cache any incorrect ABIs into memory. try: