Skip to content

Commit

Permalink
chore: fix check balance script (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
npty authored May 15, 2024
1 parent 693fb16 commit 047af37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/runCheckBalance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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])}`);
}
});

Expand Down

0 comments on commit 047af37

Please sign in to comment.