fix: estimate gas automatically when not specified

This commit is contained in:
Andre Medeiros 2019-01-31 14:32:05 -05:00 committed by Iuri Matias
parent fdd51cfebb
commit 8fd6a6dc3d
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class ContractDeployer {
next();
},
function estimateCorrectGas(next) {
if (contract.gas === 'auto') {
if (contract.gas === 'auto' || !contract.gas) {
return self.blockchain.estimateDeployContractGas(deployObject, (err, gasValue) => {
if (err) {
return next(err);