OpenZeppelin / OpenZeppelin/openzeppelin-upgrades

Support verifying proxy contracts from older versions

Open
#674 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
658
Forks
286
PR merge metrics
No merged PRs in 30d

Description

When performing Etherscan verification with the Hardhat Upgrades plugin's verify task, verification fails if the proxy contract was deployed from an older version of the Hardhat Upgrades plugin where the proxy contract source code or compiler version was different.

For example, in this thread, an existing ProxyAdmin contract was previously deployed using compiler version 0.8.2 and failed to verify with compiler version 0.8.9.

We should include a repository of proxy contract artifacts from previous versions of the plugins, and attempt to verify against those.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Hardhat Upgrades plugin's verify task and review how it currently verifies proxy contracts. Define how a repository of artifacts from previous plugin versions should be selected and tried, using the older ProxyAdmin compiler example as a case to support. Done means proxies deployed with older source or compiler versions can be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity, typescript
Domain
blockchain, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.