oasisprotocol / sapphire-paratime

Oasis Sapphire - the confidential EVM-compatible ParaTime for the Oasis Network
https://oasisprotocol.org/sapphire
Apache License 2.0
39 stars 27 forks source link

Hardhat Ignation deployment on testnet throws IGN401 #393

Open rube-de opened 2 months ago

rube-de commented 2 months ago
SUMMARY

Running Hardhat Ignition deployments on sapphire-testnet, results in an error IGN401 see: https://github.com/NomicFoundation/hardhat-ignition/issues/665

Running it multiple times the deployment can still be executed

ISSUE TYPE
STEPS TO REPRODUCE

Create a fresh hardhat project and add sapphire-hardhat with the standard lock contracts Execute

PRIVATE_KEY="0x-your-pk" npx hardhat ignition deploy ./ignition/modules/Lock.ts --network sapphire-testnet
ACTUAL RESULTS

The deployment throws an error

✔ Confirm deploy to network sapphire-testnet (23295)? … yes
Hardhat Ignition 🚀

Deploying [ LockModule ]

Batch #1
  Executing LockModule#Lock...

An unexpected error occurred:

IgnitionError: IGN401: Error while executing LockModule#Lock: all the transactions of its network interaction 1 were dropped. Please try rerunning Hardhat Ignition.
EXPECTED RESULTS

The deployment runs without an error.

Additional Comments

It works fine with the sapphire-localnet docker

As people report in the linked issue (https://github.com/NomicFoundation/hardhat-ignition/issues/665) this happen with with multiple EVM test networks, which could hint to some RPC configuration.