mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-27 05:20:33 +00:00
a834250259
* Use an env variable for eth RPC endpoint in hardhat config * Add a task to get main account address in erc20 watcher
13 lines
270 B
TypeScript
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);
|
|
});
|