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
Migration Error: The requested contract was not found. #549
Comments
Can you share a repo where we can reproduce the issue? Which versions of Truffle, NodeJS, and truffle-upgrades plugin are you using? |
Yes - do I share it with you? @ericglau It's private so I cannot share it in public. |
@boyuanx You can share it with me and I'll take a look. |
@ericglau invited, it's the revamp branch. |
I was able to reproduce the issue. Looking into it. |
@boyuanx I've identified the problem in the upgrades plugin where contracts are ignored if multiple parent contracts have the same name. In this case, this happens because a contract imports As a workaround for now, you can change the following line in your contract:
to
|
@ericglau Thank you! |
Minimal example to reproduce this issue: Contract:
Migration:
|
@boyuanx As this issue can be reproduced with my comment above, please go ahead and remove me from your repo. Thank you for bringing this to our attention. |
Appreciate the quick response! |
@ericglau I had this same issue with hardhat plugin. steps to reproduce in contracts directory
solution: |
I've never had a problem with Truffle upgrades until my current project. Migration gives the following error:
Error: The requested contract was not found. Make sure the source code is available for compilation
Things I've tried:
I've tried looking up this issue online and none of the posts helped. Need urgent help on this as this is blocking our entire project. Thanks!
The text was updated successfully, but these errors were encountered: