mirror of https://github.com/embarklabs/embark.git
chore(dashboard): change currency unit to Gwei and Ether in deployment output
Closes #2271
This commit is contained in:
parent
0450e8291f
commit
df68b6ef34
|
@ -99,7 +99,7 @@ class EthereumBlockchainClient {
|
||||||
done(err, receipt);
|
done(err, receipt);
|
||||||
}, (hash) => {
|
}, (hash) => {
|
||||||
const estimatedCost = contract.gas * contract.gasPrice;
|
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) {
|
} catch (e) {
|
||||||
this.logger.error(__('Error deploying contract %s', contract.className.underline));
|
this.logger.error(__('Error deploying contract %s', contract.className.underline));
|
||||||
|
|
Loading…
Reference in New Issue