From 2ec693d0de683301f1648df4159a08b7f745d0cc Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 29 Oct 2021 18:58:55 +0100 Subject: [PATCH] fix cli --- src/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.js b/src/cli.js index d8e3238..4a2a8ef 100755 --- a/src/cli.js +++ b/src/cli.js @@ -44,7 +44,7 @@ async function printETHBalance({ address, name }) { /** Display ERC20 account balance */ async function printERC20Balance({ address, name, tokenAddress }) { - const erc20ContractJson = require(__dirname + '../build/contracts/ERC20Mock.json') + const erc20ContractJson = require(__dirname + '/../build/contracts/ERC20Mock.json') erc20 = tokenAddress ? new web3.eth.Contract(erc20ContractJson.abi, tokenAddress) : erc20 console.log(`${name} Token Balance is`, web3.utils.fromWei(await erc20.methods.balanceOf(address).call())) }