From 88c3e3b1e68a34397f2f3d9e85436c623f730799 Mon Sep 17 00:00:00 2001 From: Rodolphe Marques Date: Fri, 12 Aug 2022 12:09:18 +0200 Subject: [PATCH] Fixed typo on CI env - cleanup --- .github/workflows/testing.yml | 2 +- src/commands/accounts/list.ts | 3 +-- src/utils/utils.ts | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a0252e1..2e26157 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -57,7 +57,7 @@ jobs: MNEMONIC: ${{ secrets.TEST_MNEMONIC }} TOKEN_ADDRESS: "0x0000000000000000000000000000000000000000" NODE_URL: "http://localhost:8545" - NETOWRK: ${{ matrix.network-name }} + NETWORK: ${{ matrix.network-name }} IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }} IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }} run: | diff --git a/src/commands/accounts/list.ts b/src/commands/accounts/list.ts index 151b505..ea294f6 100644 --- a/src/commands/accounts/list.ts +++ b/src/commands/accounts/list.ts @@ -1,5 +1,4 @@ import { Nevermined, Account, Nft721 } from '@nevermined-io/nevermined-sdk-js' -import { ethers } from 'ethers' import chalk from 'chalk' import { Logger } from 'log4js' import { @@ -48,7 +47,7 @@ export const accountsList = async ( const loadedAccounts = await Promise.all( accounts.map(async (a, index) => { - const ethBalance = ethers.utils.parseEther( + const ethBalance = BigNumber.parseEther( (await a.getEtherBalance()).toString() ) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 3a8edab..a785761 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -279,16 +279,11 @@ export const printNativeTokenBanner = async () => { export const printErc20TokenBanner = async (token: Token) => { const { address } = token - // token.contract.totalSupply() const [name, symbol, decimals, totalSupply] = await Promise.all([ token.contract.name(), token.contract.symbol(), token.contract.decimals(), token.contract.totalSupply() - // token.name(), - // token.symbol(), - // token.decimals(), - // token.totalSupply() ]) logger.info(chalk.dim('\n===== ERC20 Contract ====='))