From 2f09a88b2deb6d8e88b7bea3270741d9abc86cc9 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 4 Oct 2019 11:08:27 -0400 Subject: [PATCH] feat(deployement): add back deployment message with hash --- .../src/lib/modules/ethereum-blockchain-client/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/embark/src/lib/modules/ethereum-blockchain-client/index.js b/packages/embark/src/lib/modules/ethereum-blockchain-client/index.js index d2ffe3210..20764cf1f 100644 --- a/packages/embark/src/lib/modules/ethereum-blockchain-client/index.js +++ b/packages/embark/src/lib/modules/ethereum-blockchain-client/index.js @@ -84,9 +84,10 @@ class EthereumBlockchainClient { contract.transactionHash = receipt.transactionHash; contract.log(`${contract.className.bold.cyan} ${__('deployed at').green} ${receipt.contractAddress.bold.cyan} ${__("using").green} ${receipt.gasUsed} ${__("gas").green} (txHash: ${receipt.transactionHash.bold.cyan})`); done(err, receipt); - }, (_hash) => { + }, (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})`); }); - // }) } async doLinking(params, callback) {