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

⚡ CREATE3 deployment optimizations #304

Open
wants to merge 4 commits into
base: v7
Choose a base branch
from

Conversation

Vectorized
Copy link
Contributor

@Vectorized Vectorized commented Aug 10, 2022

Description

Some simple gas optimizations.

The avoidance of 32-byte constants is deliberate for balancing between deployment size of the parent contract and runtime costs.

Gas before:
CREATE3Test:testDeployERC20() (gas: 852410)

Gas after:
CREATE3Test:testDeployERC20() (gas: 840585)

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge snapshot?
  • Ran npm run lint?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant