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

Investigate how to optimize contracts size #244

Open
gigimon opened this issue Dec 29, 2021 · 0 comments
Open

Investigate how to optimize contracts size #244

gigimon opened this issue Dec 29, 2021 · 0 comments
Assignees

Comments

@gigimon
Copy link
Contributor

gigimon commented Dec 29, 2021

In openzeppelin tests we have warnings:

Warning: Contract code size is 28409 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
  --> contracts/mocks/GovernorCompatibilityBravoMock.sol:10:1:
   |
10 | contract GovernorCompatibilityBravoMock is
   | ^ (Relevant source part starts here and spans across multiple lines).

Check this moment, maybe hardhat has some optimizers for contracts size?

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

No branches or pull requests

1 participant