OpenZeppelin / OpenZeppelin/openzeppelin-upgrades

How to get previously deployed contract details?

Open
#449 6 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

In hardhat-deploy, it's possible to do this:

const deployment = await hre.deployments.get('...');

Is there a similar way to get contract details using @openzeppelin/hardhat-upgrades? I have a contract that depends on the address of another contract and would like to make the deployment as automated as possible.

Thanks!

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 by comparing the shown hardhat-deploy deployments.get('...') usage with the @openzeppelin/hardhat-upgrades API. The issue names no repository file or test; done would require establishing and documenting a supported way to retrieve previously deployed contract details for dependent automated deployments.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.