Skip to content

Commit

Permalink
feat: output of information on the balance with decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeVini committed Apr 28, 2022
1 parent f0fa13a commit 9b86561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/ERC20Mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = async function (hre: HardhatRuntimeEnvironment) {
const { deployer } = await getNamedAccounts();
const balance = await ethers.provider.getBalance(deployer)

console.log(`Deployer: ${deployer} , balance: ${balance} `)
console.log(`Deployer: ${deployer} , balance: ${ethers.utils.formatEther(balance)} `)

const name = 'ERC20Mock'
const symbol = 'ERC'
Expand Down
1 change: 1 addition & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const config: HardhatUserConfig = {
},
namedAccounts: {
deployer: 0,
admin: 1,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY || "API_KEY_WEB",
Expand Down

0 comments on commit 9b86561

Please sign in to comment.