I can not compile a contract in bsc

Hi, welcome to the community! :wave:

It seems like you want to verify your contracts, and just like the error message, you should use optimizer, just like this:

And if you want to verify your contracts, maybe you can have a look at this tutorial:
How to verify a contract on Etherscan/BscScan/PolygonScan

And for the next time, please search at the forum at first, and then ask questions, thanks!
How do I ask a good question? - General / Meta - OpenZeppelin Community

1 Like