mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-18 00:27:17 +00:00
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.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})`);
|
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);
|
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) {
|
async doLinking(params, callback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user