Skip to content

Commit 3c5f905

Browse files
author
Ho
committed
add mine script for localhost (instead of tick)
1 parent ba1fd07 commit 3c5f905

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/mine.ts

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as hre from "hardhat";
2+
3+
async function main() {
4+
5+
await hre.network.provider.send("evm_mine", []);
6+
7+
}
8+
9+
10+
main()
11+
.then(() => process.exit(0))
12+
.catch(error => {
13+
console.error(error);
14+
process.exit(1);
15+
});

0 commit comments

Comments
 (0)