-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: unnecessarily was using explorer when providing proxy info manually #2524
Conversation
src/ape/managers/_contractscache.py
Outdated
|
||
if proxy_info: | ||
# Contract is a proxy (either was detected or provided). | ||
if impl_contract := self._get_proxy_contract_type( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be one of 4 things:
- combined proxy + impl abi
- impl-only abi (for things like simple forwarder proxies)
- proxy-only abi (for things like upgradable proxies that don't have impls, or unverified impl)
- undeterminable contract_type (eitehr impl or proxy)
I think should add a note about this, and consider calling this variable like proxy_contract_type
instead (maybe?)
ed1b0f6
to
cc9e37e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
7f018c0
to
73f8260
Compare
What I did
It seems to unnecessarily use the explorer when you provider the proxy manually and the contract type is already cached.
How I did it
How to verify it
Checklist