I am trying to verify a contract in Polygonscan.
I flatten my contract, remove the constructors, compile in REMIX IDE without erros with Petesburg EVM version using enabling optimization (200). The deployment from REMIX is correct to.
Then I select all the same in the PolygonScan form however, PolygonScan return the next when I tried to verify my single contract file:
"Error! Unable to generate Contract ByteCode and ABI"
But we were unable to locate a matching bytecode (err_code_2)
ByteCode (what we are looking for)
vs what we got
We tried looking for a match from the list of compiled contract bytecode outputs (as listed below), but was unable to find an exact match.
Any ideas? I'm frustrated because I don't know what else to do Thanks