-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 artifact functions in ethers getContractFactoryFromArtifact
and getContractAtFromArtifact
#2116
Conversation
🦋 Changeset detectedLatest commit: 1f796dc 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 |
da3dd8c
to
c81c52f
Compare
0733aa5
to
22fbd89
Compare
49d00f6
to
6fd363a
Compare
getContractFactory
and getContractAt
getContractFactoryFromArtifact
and getContractAtFromArtifact
…romArtifact` Allow passing of artifacts (resolved via custom code) into equivalents of `getContractFactory` and `getContractAt` calls, this is to support custom artifact resolution. Relates to #1716.
6fd363a
to
6afeeff
Compare
I have test locally with newly created |
…y-overload-for-artifact
Collapse down duplicates that can be explained by the optional operator '?'.
In
hardhat-ethers
, allow passing of artifacts (resolved via custom code) into an equivalent of thegetContractFactory
call, this is instead of resolving by contract name.The intention here is to support custom contract artifact resolution but still allow the leveraging of
hardhat-ethers
.Two new functions have been added to support this without altering the existing signature:
Relates to #1716
Example Usage
TODO
getContractFactoryFromArtifact
getContractAtFromArtifact