small fix

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
VoR0220 2018-06-20 14:17:05 -05:00 committed by Iuri Matias
parent 5a3a9878f9
commit abef066652
1 changed files with 2 additions and 2 deletions

View File

@ -51,9 +51,9 @@ class GasEstimator {
} else if (_.isEqual(variance[0], variance[1]) && _.isEqual(variance[1], variance[2])) {
gasMap[name] = variance[0];
} else {
// get average
let sum = _.reduce(variance, function(memo, num) { return memo + num; }, 0);
let average = sum / variance.length;
gasMap[name] = average;
gasMap[name] = sum / variance.length;
}
return gasCb(null, name, abiMethod.type);
});