neonevm / neon-compatibility

GNU General Public License v3.0
4 stars 3 forks source link

Investigate how to optimize contracts size #244

Open gigimon opened 2 years ago

gigimon commented 2 years ago

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?