-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from ensdomains/update-hh-tasks-to-viem
remove ethers completely
- Loading branch information
Showing
4 changed files
with
108 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import config = require('hardhat/config') | ||
import { task } from 'hardhat/config.js' | ||
|
||
config.task('accounts', 'Prints the list of accounts', async (_, hre) => { | ||
const accounts = await hre.ethers.getSigners() | ||
task('accounts', 'Prints the list of accounts', async (_, hre) => { | ||
const accounts = await hre.viem.getWalletClients() | ||
|
||
for (const account of accounts) { | ||
for (const { account } of accounts) { | ||
console.log(account.address) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters