mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
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"),
|
async.each(contract.abiDefinition.filter((x) => x.type !== "event"),
|
||||||
(abiMethod, gasCb) => {
|
(abiMethod, gasCb) => {
|
||||||
let name = abiMethod.name;
|
let name = abiMethod.name;
|
||||||
if (abiMethod.type == "constructor") {
|
if (abiMethod.type === "constructor") {
|
||||||
// already provided for us
|
// already provided for us
|
||||||
gasMap['constructor'] = contract.gasEstimates.creation.totalCost.toString();
|
gasMap['constructor'] = contract.gasEstimates.creation.totalCost.toString();
|
||||||
return gasCb(null, name, abiMethod.type);
|
return gasCb(null, name, abiMethod.type);
|
||||||
@ -61,7 +61,7 @@ class GasEstimator {
|
|||||||
},
|
},
|
||||||
(err, name, type) => {
|
(err, name, type) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (type == "constructor" || type == "fallback") name = type;
|
if (type === "constructor" || type === "fallback") name = type;
|
||||||
return cb(err, null, name);
|
return cb(err, null, name);
|
||||||
}
|
}
|
||||||
cb(null, gasMap, null);
|
cb(null, gasMap, null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user