Ignition status command does not work with external artifacts deployed
Version of Hardhat
2.22.8
What happened?
Same setup as in NomicFoundation/hardhat#5659. I'm using ignition to deploy external artifacts.
After successful deployment I ran npx hardhat ignition status op-sepolia-1 I received this output:
Error HH700: Artifact for contract "Orec" not found.
For more info go to https://hardhat.org/HH700 or run Hardhat with --show-stack-traces
If I run the deploy command again it says `Nothing new to deploy based on previous execution stored in ./ignition/deployments/op-sepolia-1" (as expected) so it seems that deploy command finds the required artifacts but status command does not?
Expected status command to print addresses of deployed contracts.
Minimal reproduction steps
- Create sample hardhat project 1, compile it;
- Create hardhat project 2, create ignition module that tries to deploy artifact from project 1 (as described here);
- Use ignition to deploy to testnet (I was deploying to OP Sepolia)
- Try
ignition status <deployment-id>command
Search terms
ignition
While NomicFoundation/hardhat-ignition#823 is a limitation (we don't have all the info needed for verification), this looks like a bug where we are making incorrect assumptions in the status command.