From df68b6ef345727e628b83898de23d0b022f22799 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 13 Apr 2020 13:31:23 +0200 Subject: [PATCH] chore(dashboard): change currency unit to Gwei and Ether in deployment output Closes #2271 --- packages/plugins/ethereum-blockchain-client/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/ethereum-blockchain-client/src/index.js b/packages/plugins/ethereum-blockchain-client/src/index.js index 318db4180..b7ef06f9c 100644 --- a/packages/plugins/ethereum-blockchain-client/src/index.js +++ b/packages/plugins/ethereum-blockchain-client/src/index.js @@ -99,7 +99,7 @@ class EthereumBlockchainClient { done(err, receipt); }, (hash) => { const estimatedCost = contract.gas * contract.gasPrice; - contract.log(`${__("Deploying")} ${contract.className.bold.cyan} ${__("with").green} ${contract.gas} ${__("gas at the price of").green} ${contract.gasPrice} ${__("Wei. Estimated cost:").green} ${estimatedCost} ${"Wei".green} (txHash: ${hash.bold.cyan})`); + contract.log(`${__("Deploying")} ${contract.className.bold.cyan} ${__("with").green} ${contract.gas} ${__("gas at the price of").green} ${Web3.utils.fromWei(contract.gasPrice, 'gwei')} ${__("Gwei. Estimated cost:").green} ${Web3.utils.fromWei(estimatedCost.toString())} ${"ether".green} (txHash: ${hash.bold.cyan})`); }); } catch (e) { this.logger.error(__('Error deploying contract %s', contract.className.underline));