From a325abe1c2e799d72cd68c6c2b547da684e3530d Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 31 Aug 2018 13:41:41 +0100 Subject: [PATCH] profile always return --- lib/modules/profiler/gasEstimator.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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