Tasks for interacting from different Ethereum accounts
In a similar way to the network plugin, this plugin allows to set the wallet to be used to sign messages, send transactions, and interact with contracts in a way that persists between CLI calls.
The tasks in this plugin basically allow you to manage this wallet setting.
npm install ethernaut-wallet
Import the plugin in your hardhat.config.js
:
require('ethernaut-wallet')
Or if you are using TypeScript, in your hardhat.config.ts
:
import 'ethernaut-wallet'
This plugins adds the following tasks to hardhat:
- set Sets the active wallet
- add Adds a new wallet
- current Shows which wallet is active
- info Shows information about a wallet
- list Lists all wallets
- remove Removes a wallet
- sign Signs a message with the active wallet
This plugin doesn't extend the hre.
This plugin doesn't add any fields to the hardhat configuration file.
There are no additional steps you need to take for this plugin to work.