I am testing my new token contract on Rinkeby. The contract was compiled and deployed using Brownie. I am deploying the token to Rinkeby and it is compiled and deployed correctly.
However, when I try and verify my contract on Etherscan, it keeps failing with the following error:
Error! Unable to generate Contract ByteCode and ABI
Found the following ContractName(s) in source code: Context.sol:Context, IERC20.sol:IERC20, Token.sol:Token
But we were unable to locate a matching bytecode (err_code_2)
My contract consists of multiple files (3 to be exact) and I am using Solidity compiler version 0.8.1.
I tried compiling and deploying with Byzantium, Constantinople and Istanbul EVMs. But I keep getting the same error.
I cannot use the
publish_source parameter when deploying with Brownie as that requires an API key and to my knowledge there are no API keys for Etherscan Rinkeby.
Am I missing something? Or is verification not possible on Etherscan Rinkeby?