diff --git a/lib/modules/gasEstimator/index.js b/lib/modules/gasEstimator/index.js index 312fcf32a..ccf34cf61 100644 --- a/lib/modules/gasEstimator/index.js +++ b/lib/modules/gasEstimator/index.js @@ -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);