UNPKG

@excubiae/contracts

Version:
15 lines 547 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = require("hardhat/config"); (0, config_1.task)("accounts", "Prints the list of accounts") .addOptionalParam("logs", "Print the logs", true, config_1.types.boolean) .setAction(async ({ logs }, { ethers }) => { const accounts = await ethers.getSigners(); if (logs) { for (const account of accounts) { console.info(await account.getAddress()); } } return accounts; }); //# sourceMappingURL=accounts.js.map