From 8fd6a6dc3dd46ea9b045c97ce80b797165305442 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 31 Jan 2019 14:32:05 -0500 Subject: [PATCH] fix: estimate gas automatically when not specified --- packages/embark/src/lib/modules/deployment/contract_deployer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/embark/src/lib/modules/deployment/contract_deployer.js b/packages/embark/src/lib/modules/deployment/contract_deployer.js index c28f927ba..c13f55fff 100644 --- a/packages/embark/src/lib/modules/deployment/contract_deployer.js +++ b/packages/embark/src/lib/modules/deployment/contract_deployer.js @@ -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);