New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hardhat_metadata RPC method #3382
Conversation
🦋 Changeset detectedLatest commit: 34f6c34 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/hardhat-core/src/internal/hardhat-network/provider/modules/web3.ts
Show resolved
Hide resolved
packages/hardhat-core/src/internal/hardhat-network/provider/utils/makeForkClient.ts
Show resolved
Hide resolved
// This field is only present when Hardhat Network is forking another chain. | ||
forkedNetwork?: { | ||
// The chainId of the network that is being forked | ||
chainId: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add networkId
here, for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed networkId
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I just left a comment about fork network id, mostly to make the API more consistent.
We decided to drop |
Adds a new
hardhat_metadata
RPC method. This method is meant to be used by other tools, like wallets or deployment systems, to get information about the instance of the network.