mirror of https://github.com/embarklabs/embark.git
fix: estimate gas automatically when not specified
This commit is contained in:
parent
fdd51cfebb
commit
8fd6a6dc3d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue