watcher-ts/packages/erc20-watcher/test/tasks/account.ts
prathamesh0 a834250259
Update demo hardhat configs to use env variable for eth endpoint (#277)
* Use an env variable for eth RPC endpoint in hardhat config

* Add a task to get main account address in erc20 watcher
2022-12-21 17:59:31 +05:30

13 lines
270 B
TypeScript

//
// Copyright 2022 Vulcanize, Inc.
//
import { task } from 'hardhat/config';
import '@nomiclabs/hardhat-ethers';
task('account', 'Prints the account', async (taskArgs, hre) => {
const [account] = await hre.ethers.getSigners();
console.log(account.address);
});