dione/eth-contracts/hardhat.config.ts
2021-04-19 22:46:49 +03:00

22 lines
504 B
TypeScript

import { task } from "hardhat/config";
import "@nomiclabs/hardhat-ethers";
task("accounts", "Prints the list of accounts", async (args, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(await account.address);
}
});
export default {
solidity: "0.8.3",
networks: {
ganache: {
url: `http://localhost:7545`,
accounts: {
mnemonic: "test test test test test test test test test test test junk"
}
}
}
};