feat(deployement): add back deployment message with hash

This commit is contained in:
Jonathan Rainville 2019-10-04 11:08:27 -04:00
parent 7fae609d87
commit 2f09a88b2d
1 changed files with 3 additions and 2 deletions

View File

@ -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) {