Hot answers tagged

1 vote

UNIT Test Error: No Contract deployed with name Raffle

I found the answer.The error was, This line module.exports.tags = ['all', 'mocks']; was inside the deploy script's curly brackets...
user avatar
1 vote

evm_increaseTime in hardhat

In order to advance time when testing with Hardhat, you have to use the network provider's increase_time method. Here's a code of what it should look like const { network } = require("hardhat&...
user avatar
1 vote
Accepted

Hardhat chain fork on the test rather than config file

yes just change your network (add this with your api key to the before each): await hre.network.provider.request({ method: "hardhat_reset", params: [{forking: { ...
user avatar
  • 3,264
1 vote

Modify block number when testing with Hardhat

There's now a Hardhat method exactly for that: From hardhat docs: // mine 256 blocks await hre.network.provider.send("hardhat_mine", ["0x100"]); // mine 1000 blocks with an ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible