re-add gas price check

This commit is contained in:
Iuri Matias 2019-08-06 17:42:18 -04:00
parent 7093844566
commit 2fc56c8d63
1 changed files with 5 additions and 0 deletions

View File

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