I have similar issues in verifying the Proxy contract too in Avalanche fuji testnet, I'm using snowtrace explorer.
Im using buidler plugin to deploy upgradable proxy contracts.
This is the proxy contract I need help with. I was able to locate the Artifacts folder under @openzepplin/upgrades-core where the byte code from json matches with my bytecode for this contract.
I think I need the original proxy contracts & the solc version with optimization details to reproduce the same bytecode & verify using hardhat, as I tried contracts from upgrades/proxy with different versions of solc, that doesn't reproduce the same bytecode as in the artifacts folder of "upgrades-core"
Thanks for the response, I did see the post, but issue for me is I'm using buidler to deploy which is older and it deploys the prebuilt artifacts and it doesn't have code/compiler settings, But I'm using hardhat to verify, since Buidler doesn't support avalanche.|
And for this purpose I need the settings & code to match the byte code of prebuilt artifacts.
Thanks again for the response
Ok I see. In that case you should check out the code for our last Buidler plugin release: @openzeppelin/buidler-upgrades@1.2.2, compile the proxies under packages/core, and use the build info to verify on Snowtrace.