mirror of https://github.com/embarklabs/embark.git
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);
|
||||
}
|
||||
|
||||
if (!contract.gasPrice) {
|
||||
let gasPrice = await web3.eth.getGasPrice()
|
||||
contract.gasPrice = contract.gasPrice || gasPrice;
|
||||
}
|
||||
|
||||
// this.blockchain.deployContractFromObject(deployObject,
|
||||
console.dir({ arguments: contract.args, data: ("0x" + contract.code) });
|
||||
console.dir("------- send")
|
||||
|
|
Loading…
Reference in New Issue