-
Notifications
You must be signed in to change notification settings - Fork 298
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 an importPath
option for the deploy
function
#343
Comments
did you try specifying |
It doesn't look like it will help much for my use-case, because the internal structure of the external libraries artifacts is the same: I have these dependencies: To use fully-qualified names, I need to have an external: {
contracts: [
{artifacts: 'node_modules/projectA/artifacts'},
{artifacts: 'node_modules/projectB/artifacts'},
],
} In the end, I have the same issue when deploying, still not specifying which folder to read the artifact from: await deploy("Contract", {contract: "contracts/Contract.sol:Contract"}); |
What I am proposing works as follows: await deploy("Contract", {contract: "Contract", importPath: "node_modules/projectA/artifacts"}); |
The solution should be to use Full Qualified Name.
|
Is your feature request related to a problem? Please describe.
When a project depends on artifacts from external libraries and several artifacts have the same name, calling
deploy
with a contract name does not allow selecting which artifact to load.Describe the solution you'd like
An optional
importPath
field inDeployOptionsBase
which allows to retrieve the artifact by its name from a specific folder.Describe alternatives you've considered
As a workaround, one can do:
The text was updated successfully, but these errors were encountered: