Hi, I've deploy an upgradeable contract on Linea and was able to verify its implementation with hardhat but couldn't get the proxy contract verified.
I've tried to follow the steps described [here] (https://lineascan.build/address/0x0332fCE92897679E97620A097aa515F5d7CF4034#code) but it didn't work.
Proxies are usually already verified but it doesn't seem to be the case on Linea.
Thanks for the help.
Hi @nicob927, how did you deploy the proxy?
Thanks for you reply.
I used hardhat
You can try using the
verify task from the Hardhat Upgrades plugin, see the documentation for steps.
Yes that's the first thing I tried but I got this error:
Are deploying and verifying from the same version of the plugin? Can you run and provide the outputs of the following commands:
npm list @openzeppelin/upgrades-core
Sure, here is the output of the second command. The output of the first command is quite long, which part are you interested in?
Thanks for the info. The
verify task did not work because that version of the plugin was from before we supported this verification feature.
I've manually verified your transparent proxy contract and also its ProxyAdmin contract.
Awesome, thanks a lot for your help!
@ericglau I am facing the issue with some other network, could you send me the code you manually submitted so I can manually verify it on other chains? Thanks
Here is the Solc JSON Input file for the proxies from that version of the plugin: solc-input.json (39.3 KB)
You can verify using Solc JSON Input option on Etherscan by uploading that file. The compiler version is 0.8.2 and license is MIT. The encoded constructor arguments for the proxy are everything after the contract bytecode in the creation transaction (for example in the transaction that created your proxy here,
Amazing thanks a lot, I was able to verify it on the other network!