Skip to content

Commit

Permalink
fix: estimate gas automatically when not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Medeiros authored and iurimatias committed Feb 13, 2019
1 parent fdd51cf commit 8fd6a6d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
Expand Down

0 comments on commit 8fd6a6d

Please sign in to comment.