I generated a contract for governance based on the wizard provided by openzeppelin here: https://wizard.openzeppelin.com/#governor
I didn't change any values in the fields and tried compiling the contract in hardhat. But it throws the below warning:
Warning: Contract code size is 25663 bytes and exceeds 24576 bytes
(a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet.
Kindly someone help me resolve this. I need to use the timelock feature along with other default base contracts for governance.