Created
June 22, 2022 04:36
-
-
Save donoso-eth/148d031bbc57e6a3b6708367a52b0069 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// Mine a block | |
await hre.network.provider.request({ | |
method: "evm_mine", | |
params: [], | |
}); | |
//// Increase block chain Time | |
await hre.network.provider.request({ | |
method: "evm_increaseTime", | |
params: [INCREASE_PERIOD_IN_SEC], | |
}); | |
//// set next block Timestamp | |
await hre.network.provider.request({ | |
method: "evm_setNextBlockTimestamp", | |
params: [NEW_TIMESTAMP], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment