hardhat-ignition icon indicating copy to clipboard operation
hardhat-ignition copied to clipboard

Ignition status command does not work with external artifacts deployed

Open sim31 opened this issue 1 year ago • 1 comments

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

  1. Create sample hardhat project 1, compile it;
  2. Create hardhat project 2, create ignition module that tries to deploy artifact from project 1 (as described here);
  3. Use ignition to deploy to testnet (I was deploying to OP Sepolia)
  4. Try ignition status <deployment-id> command

Search terms

ignition

sim31 avatar Aug 22 '24 14:08 sim31

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.

kanej avatar Aug 23 '24 09:08 kanej