Skip to content

⚡ CREATE3 deployment optimizations#304

Open
Vectorized wants to merge 4 commits intotransmissions11:v7from
Vectorized:c3
Open

⚡ CREATE3 deployment optimizations#304
Vectorized wants to merge 4 commits intotransmissions11:v7from
Vectorized:c3

Conversation

@Vectorized
Copy link
Copy Markdown
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.

1 participant