Skip to content

Commit

Permalink
add mine script for localhost (instead of tick)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ho committed Dec 3, 2021
1 parent ba1fd07 commit 3c5f905
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/mine.ts
Original file line number Diff line number Diff line change
@@ -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);
});

0 comments on commit 3c5f905

Please sign in to comment.