mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-28 05:10:43 +00:00
re-add gas price check
This commit is contained in:
parent
7093844566
commit
2fc56c8d63
@ -38,6 +38,11 @@ class EthereumBlockchainClient {
|
|||||||
contract.gas = Math.floor(gasValue * increase_per);
|
contract.gas = Math.floor(gasValue * increase_per);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!contract.gasPrice) {
|
||||||
|
let gasPrice = await web3.eth.getGasPrice()
|
||||||
|
contract.gasPrice = contract.gasPrice || gasPrice;
|
||||||
|
}
|
||||||
|
|
||||||
// this.blockchain.deployContractFromObject(deployObject,
|
// this.blockchain.deployContractFromObject(deployObject,
|
||||||
console.dir({ arguments: contract.args, data: ("0x" + contract.code) });
|
console.dir({ arguments: contract.args, data: ("0x" + contract.code) });
|
||||||
console.dir("------- send")
|
console.dir("------- send")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user