Closed mshakeg closed 2 years ago
Hi, @mshakeg,
The hardhat-deploy
plugin, under the hood, uses etherjs
and the etherjs
provider (i.e. JSON RPC). On the other side, hethers
doesn't implement the JSON RPC provider, so you can't use hardhat-deploy
with hardhat-hethers
out of the box. To use hardhat-deploy
with hethers
, we have to develop a hardhat-deploy-hedera
plugin which core will interact with hethers
instead of ethers
.
Alternatively, you can use the hedera JSON RPC relay with ethers. That will fix most of your issues, and you will be able to interact hardhat-deploy
without any concerns.
Hi @natanasow
Yeah, I managed to get it working a while back by setting up the relay in the hardhat networks config, however, forgot to close this issue. I do however think there are still issues with other hardhat plugins such as solidity-coverage
.
Yeah, that's possible, each plugin that uses ethersjs
will not work correctly and must be rewritten with hethersjs
.
Problem
hardhat-deploy doesn't work with
@hashgraph/hardhat-hethers
. Attemptingawait deployments.fixtures()
results in the following error stack trace:Solution
network
is set to env.network i.e.hre.network
. Potentially havehedera-hardhat-hethers
plugin loadnetwork: Network
intohre
with a compatibleProvider
Alternatives
No response