fix eqls
This commit is contained in:
parent
ad6a6cf328
commit
6845c7124b
|
@ -22,7 +22,7 @@ class GasEstimator {
|
|||
async.each(contract.abiDefinition.filter((x) => x.type !== "event"),
|
||||
(abiMethod, gasCb) => {
|
||||
let name = abiMethod.name;
|
||||
if (abiMethod.type == "constructor") {
|
||||
if (abiMethod.type === "constructor") {
|
||||
// already provided for us
|
||||
gasMap['constructor'] = contract.gasEstimates.creation.totalCost.toString();
|
||||
return gasCb(null, name, abiMethod.type);
|
||||
|
@ -61,7 +61,7 @@ class GasEstimator {
|
|||
},
|
||||
(err, name, type) => {
|
||||
if (err) {
|
||||
if (type == "constructor" || type == "fallback") name = type;
|
||||
if (type === "constructor" || type === "fallback") name = type;
|
||||
return cb(err, null, name);
|
||||
}
|
||||
cb(null, gasMap, null);
|
||||
|
|
Loading…
Reference in New Issue