profile always return

This commit is contained in:
Anthony Laibe 2018-08-31 13:41:41 +01:00
parent a1c2d7e77a
commit a325abe1c2
1 changed files with 1 additions and 3 deletions

View File

@ -45,9 +45,7 @@ class GasEstimator {
getVarianceCb(err, gasAmount); getVarianceCb(err, gasAmount);
}); });
}, (err, variance) => { }, (err, variance) => {
if (err) { if (variance.every(v => v === variance[0])) {
return gasCb(err, name, abiMethod.type);
} else if (variance.every(v => v === variance[0])) {
gasMap[name] = variance[0]; gasMap[name] = variance[0];
} else { } else {
// get average // get average