Skip to content
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

Ape's proxy detection requires many calls #2465

Open
fubuloubu opened this issue Jan 10, 2025 · 1 comment
Open

Ape's proxy detection requires many calls #2465

fubuloubu opened this issue Jan 10, 2025 · 1 comment
Labels
category: bug Something isn't working

Comments

@fubuloubu
Copy link
Member

fubuloubu commented Jan 10, 2025

Description

Every time Ape does a call via ContractCache.instance_at, it will do proxy detection logic, which requires (I think?) 6 different calls to perform:
eth_getStorageAt
eth_getStorageAt
eth_getStorageAt
eth_getStorageAt
eth_call
eth_getCode (this one is heavy)

Suggestions

Suggestion would be to look at optimizing that proxy detection into a single batched RPC call (if available), and potentially find another way to perform whatever eth_getCode is needed for, since that's a pretty heavy call

@fubuloubu fubuloubu added the category: bug Something isn't working label Jan 10, 2025
Copy link

linear bot commented Jan 10, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant