I used this wizard to generate governor code: https://wizard.openzeppelin.com/#governor
Here is the remix link: Remix
I didn't change anything in the code it is what is generated fromthe wizard. Can someone please hep me reduce the contract size?
I used this wizard to generate governor code: https://wizard.openzeppelin.com/#governor
Here is the remix link: Remix
I didn't change anything in the code it is what is generated fromthe wizard. Can someone please hep me reduce the contract size?
Hi I am trying to create a DAO using the same basse contracts but I am getting max size limit warking. I created a separate issue here: Openzeppelin wizard's 'Governor' generates code that exceeds the max limit of 24576 bytes
Did you face the same issue?
I think you can Enable optimization
for your config.
I tried enabling optimization and set the run upto 1, sadly no luck.
Generally, it is 200, and of course, you can set a larger value, like 2000.
You need to compile this contract with optimizations.
What compiler version were you using?
When I open the Remix link you shared and enable optimizations it is under the code size limit. It works with runs 200 or 1. The compiler version is 0.8.17.