Closed ifavo closed 1 year ago
@vechain/hardhat-ethers
was missing in the configuration. The example on https://docs.vechain.org/vechain-and-hardhat/create-a-hardhat-sample-project-web3 is missing it too.
Adding an import '@vechain/hardhat-ethers';
solved the deployment.
$ npx hardhat run scripts/deploy.ts --network vechain
Compiled 1 Solidity file successfully
Lock with 0.001ETH and unlock timestamp 1681300079 deployed to 0x00095Df2921b27E01867aFA4BA207a17D3047dfB
I am trying to deploy a sample contract using the standard libraries based on the instructions on https://docs.vechain.org/vechain-and-hardhat/create-a-hardhat-sample-project-web3
My steps are:
hardhat.config.ts
Then a test deployment is run:
noNetwork
error is thrownIs there something wrong with my setup?