HOW TO WRITE TIME DEPENDENT TEST WITH HARDHAT?
To write time-dependent tests with hardhat, the “evm_increasetime” and “evm_mine” functions of the hardhat ethers plugin are used. Steps: 1. Import Hardhat and Hardhat Ethers plugins const { ethers } = require(“hardhat”) const hre = require(“hardhat”) 2. Define the below mentioned functions 3. Call the …