mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-02 13:23:10 +00:00
chore(hardhat): bumping hardhat to v2.24.2 (#245)
* bumping hardhat to v2.24.2 * Ensure to get the next block timestamp --------- Co-authored-by: Arnaud <arnaud@status.im>
This commit is contained in:
parent
4b2fc07ca9
commit
08e91c2443
3103
package-lock.json
generated
3103
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,7 @@
|
||||
"chai": "^4.3.7",
|
||||
"ethereum-waffle": "^3.4.4",
|
||||
"ethers": "^5.7.2",
|
||||
"hardhat": "^2.17.1",
|
||||
"hardhat": "^2.24.2",
|
||||
"hardhat-deploy": "^0.11.34",
|
||||
"hardhat-deploy-ethers": "^0.3.0-beta.13",
|
||||
"prettier": "^2.8.2",
|
||||
|
||||
@ -12,7 +12,11 @@ async function snapshot() {
|
||||
async function revert() {
|
||||
const { id, time, automine } = snapshots.pop()
|
||||
await ethers.provider.send("evm_revert", [id])
|
||||
await ethers.provider.send("evm_setNextBlockTimestamp", [time])
|
||||
|
||||
const current = await currentTime()
|
||||
const nextTime = Math.max(time + 1, current + 1)
|
||||
|
||||
await ethers.provider.send("evm_setNextBlockTimestamp", [nextTime])
|
||||
await ethers.provider.send("evm_setAutomine", [automine])
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user