Skip to content

Commit

Permalink
fix: unnecessarily was using exploreR
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Feb 19, 2025
1 parent a32e621 commit 2d56e46
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ape/managers/_contractscache.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,11 @@ def get(
if proxy_info:
# Contract is a proxy (either was detected or provided).
implementation_contract_type = self.get(proxy_info.target, default=default)
proxy_contract_type = (
self._get_contract_type_from_explorer(address_key)
if fetch_from_explorer
else None
proxy_contract_type = self.get(
address_key,
fetch_from_explorer=fetch_from_explorer,
proxy_info=proxy_info,
detect_proxy=False,
)
if proxy_contract_type is not None and implementation_contract_type is not None:
combined_contract = _get_combined_contract_type(
Expand Down

0 comments on commit 2d56e46

Please sign in to comment.