Is your feature request related to a problem? Please describe.
Currently we don't provide any info on this limitation.
Describe the solution you'd like
I think we should mention this contract size limitation (24KB) somewhere in our docs on smart contracts: https://ethereum.org/en/developers/docs/smart-contracts/
We could also list approaches to getting around this limitation, e.g. by using proxy contracts or the diamond pattern: https://dev.to/mudgen/ethereum-s-maximum-contract-size-limit-is-solved-with-the-diamond-standard-2189
Describe alternatives you've considered
Not sure where the best place is to put it... could make sense in a few places:
- https://ethereum.org/en/developers/docs/smart-contracts/#limitations
- https://ethereum.org/en/developers/docs/smart-contracts/anatomy/
- https://ethereum.org/en/developers/docs/smart-contracts/compiling/
- https://ethereum.org/en/developers/docs/smart-contracts/deploying/
- https://ethereum.org/en/developers/docs/smart-contracts/libraries/
Additional context
More on the diamond pattern: https://eips.ethereum.org/EIPS/eip-2535
Want to contribute?
We love contributions from the Ethereum community! Please comment on an issue if you're interested in helping out with a PR.