Sagar Shah
@sgzsh269
Writing a non-trivial smart contract can lead to hitting EVM's 24KB contract size limit. Some resources to handle that:- 1. https://ethereum.org/en/developers/tutorials/downsizing-contracts-to-fight-the-contract-size-limit/ 2. https://npmjs.com/package/hardhat-contract-sizer
1 reply
0 recast
0 reaction
Sagar Shah
@sgzsh269
Can achieve considerable downsizing from these quick techniques:- - avoid function local variables - shorten error strings - remove non-essential view functions
0 reply
0 recast
0 reaction