From 827b104ee837605286cb1e9e5b906901500f8e71 Mon Sep 17 00:00:00 2001 From: npty Date: Tue, 14 May 2024 22:36:02 +0700 Subject: [PATCH] chore: fix check balance script --- scripts/runCheckBalance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runCheckBalance.js b/scripts/runCheckBalance.js index f95814ee..b7c0da11 100644 --- a/scripts/runCheckBalance.js +++ b/scripts/runCheckBalance.js @@ -14,7 +14,7 @@ const env = process.argv[2] || 'testnet'; checkEnv(env); // Get the chains for the environment. -const allTestnetChains = Object.entries(testnetInfo).map((_, chain) => chain.name); +const allTestnetChains = Object.entries(testnetInfo).map(([, chain]) => chain.name); const chains = getEVMChains(env, allTestnetChains); // Get the wallet. @@ -28,7 +28,7 @@ async function print() { console.log('Native tokens:'); await getBalances(chains, wallet.address).then((balances) => { for (let i = 0; i < chains.length; i++) { - console.log(`${chains[i].name}: ${ethers.utils.formatEther(balances[chains[i].name])} ${chains[i].tokenSymbol}`); + console.log(`${chains[i].name}: ${ethers.utils.formatEther(balances[chains[i].name])}`); } });