mirror of https://github.com/embarklabs/embark.git
feat(deployement): add back deployment message with hash
This commit is contained in:
parent
7fae609d87
commit
2f09a88b2d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue