mirror of https://github.com/embarklabs/embark.git
profile always return
This commit is contained in:
parent
a1c2d7e77a
commit
a325abe1c2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue