From 3c5f905bb8db3787cb70a6e25bbce15a8808a722 Mon Sep 17 00:00:00 2001 From: Ho Date: Fri, 3 Dec 2021 16:14:00 +0800 Subject: [PATCH] add mine script for localhost (instead of tick) --- scripts/mine.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/mine.ts diff --git a/scripts/mine.ts b/scripts/mine.ts new file mode 100644 index 0000000..b43d62e --- /dev/null +++ b/scripts/mine.ts @@ -0,0 +1,15 @@ +import * as hre from "hardhat"; + +async function main() { + + await hre.network.provider.send("evm_mine", []); + +} + + +main() + .then(() => process.exit(0)) + .catch(error => { + console.error(error); + process.exit(1); + });