Questions tagged [eip170]

9 questions
5
votes
2 answers

EIP-170 | How do you get the real contract size using hardhat and avoid contract code size warning?

Can someone please direct me to a solution to this problem? The hardhat coverage plugin is telling me that my contract can't be deployed to mainnet. But hardhat size-contracts plugin is telling me that my contract size is only 10.9KB. This is far…
1
vote
1 answer

Do comments affect the contract size limit?

I ran into the eip-170 contract code size limitation. I need to trim it down. Do comments affect the size of the contract as I have a lot of them and don't mind getting rid of them.
0
votes
1 answer

Is MAX_CODE_SIZE in EIP-170 pick by theoretical prediction only or backed by benchmark?

I get the rationale of the EIP-170 MAX_CODE_SIZE state here https://github.com/ethereum/EIPs/blame/master/EIPS/eip-170.md#L25 and here https://github.com/ethereum/EIPs/issues/170#issuecomment-259933671 What I want to know is how MAX_CODE_SIZE 24,576…