You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when using autoload with DiamondProxy, facet addresses and ABIs are resolved even when followProxies: false is set. This behavior might not align with the expected use case when users want to retrieve proxies and implementations separately.
Options
Option 1: For DiamondProxy, do not resolve the implementation ABIs when followProxies: false is set.
Option 2: Add an isProxyResolved flag to AutoloadResult to indicate whether the proxy has been resolved (e.g., when the ABI for the implementation address has been resolved in cases like DiamondProxy, this flag would be set to true).
Option 3: When autoload resolves the implementation ABI, return an empty proxies field in AutoloadResult.
I'm not entirely sure which option would be the most suitable at the moment. What do you think?
The text was updated successfully, but these errors were encountered:
Ah I think you're right, this is a bug. If followProxies: false, then the DiamondProxy resolving should be bundled into the result.followProxies() callback.
I'll try that fix, but there might have been a reason I didn't do that in the first place, let's find out! :)
shazow
added
soon
Planned, targeting a near-future release
maybe
Not sure if this is a good idea yet
and removed
urgent
Blocker for next release
labels
Oct 1, 2024
Proposal
Currently, when using autoload with DiamondProxy, facet addresses and ABIs are resolved even when
followProxies: false
is set. This behavior might not align with the expected use case when users want to retrieve proxies and implementations separately.Options
DiamondProxy
, do not resolve the implementation ABIs whenfollowProxies: false
is set.isProxyResolved
flag toAutoloadResult
to indicate whether the proxy has been resolved (e.g., when the ABI for the implementation address has been resolved in cases likeDiamondProxy
, this flag would be set totrue
).autoload
resolves the implementation ABI, return an emptyproxies
field inAutoloadResult
.I'm not entirely sure which option would be the most suitable at the moment. What do you think?
The text was updated successfully, but these errors were encountered: