Skip to content

Commit

Permalink
fix: name task
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeVini committed Apr 27, 2022
1 parent 235b5e3 commit d318da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions tasks/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import "./accounts"
import "./mnemonic"
9 changes: 3 additions & 6 deletions tasks/utils/mnemonic.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { task } from "hardhat/config"

task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners()

for (const account of accounts) {
console.log(account.address)
}
task("mnemonic", "Generate new mnemonic", async (taskArgs, hre) => {
const wallet = hre.ethers.Wallet.createRandom()
console.log(`Mnemonic: ${wallet.mnemonic.phrase}`)
})

0 comments on commit d318da4

Please sign in to comment.