This commit is contained in:
Iuri Matias 2018-06-15 17:24:19 -04:00
parent ad6a6cf328
commit 6845c7124b
1 changed files with 2 additions and 2 deletions

View File

@ -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);