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

refactor(protocol): use immutables to avoid some address resolving #18913

Merged
merged 23 commits into from
Feb 13, 2025

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Feb 11, 2025

This PR updates several (but not all) contracts to use immutable variables, reducing resolver lookups where possible. The goal is not to eliminate IResolver entirely, as certain cases still require address resolution using (chainId, name) pairs. These specific lookups cannot be efficiently replaced with immutables.

@dantaik dantaik marked this pull request as ready for review February 13, 2025 01:22
@dantaik dantaik enabled auto-merge (squash) February 13, 2025 01:23
@dantaik dantaik changed the title refactor(protocol): use immutables to avoid address resolving refactor(protocol): use immutables to avoid some address resolving Feb 13, 2025
@dantaik dantaik merged commit d5f9fe5 into main Feb 13, 2025
13 checks passed
@dantaik dantaik deleted the immutable_vars branch February 13, 2025 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants