diff --git a/lib/modules/profiler/gasEstimator.js b/lib/modules/profiler/gasEstimator.js index c755cf2c..d46aee89 100644 --- a/lib/modules/profiler/gasEstimator.js +++ b/lib/modules/profiler/gasEstimator.js @@ -45,9 +45,7 @@ class GasEstimator { getVarianceCb(err, gasAmount); }); }, (err, variance) => { - if (err) { - return gasCb(err, name, abiMethod.type); - } else if (variance.every(v => v === variance[0])) { + if (variance.every(v => v === variance[0])) { gasMap[name] = variance[0]; } else { // get average