Governance contract exceeds 24576 bytes

hello guys, how are you?
I'm having a problem with the governance contract that is suggested in the openzeppelin wizard.
for some reason I'm getting the following message when I deploy the contract using the remix.

Warning: Contract code size is 27343 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon).

Do you know how I can solve this size problem?

1 Like

Hey Leo,

Welcome to the community.

This might help you.

Hi, welcome to the community! :wave:

I think you can Enable optimization and then have a try

This should be solved by compiling with optimizations enabled.

The tricks in the link above are not relevant for this case because it's OpenZeppelin code that you can't modify as the article suggests you might do.