I have deployed a contract to Mumbai Polygon testnet. While verifying and publishing source code, the flattened file has multiple solidity versions. I got the error below.enter image description here

The OpenZeppelin contracts imported in the contract has version 0.8.20 and my contract has ^0.8.9. Even after changing the version to 0.8.20, I get the error while verifying my contract which has a different version.

How to solve this??


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.