Merge pull request #758 from embark-framework/bugfix/profile-do-not-crash
profile always return
This commit is contained in:
commit
aeb4c0d0c0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue