aboutsummaryrefslogtreecommitdiffstats
path: root/lib/contract.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/contract.js')
-rw-r--r--lib/contract.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/contract.js b/lib/contract.js
index 95cc7bbd6..efee00cd1 100644
--- a/lib/contract.js
+++ b/lib/contract.js
@@ -53,7 +53,7 @@ var contract = function (address, desc) {
// prototype, so we make it so as a workaround.
if (method.name.indexOf('(') === -1) {
var displayName = method.name;
- var typeName = method.inputs.map(function(i){return i.type}).join();
+ var typeName = method.inputs.map(function(i){return i.type; }).join();
method.name = displayName + '(' + typeName + ')';
}
});
@@ -120,9 +120,9 @@ var contract = function (address, desc) {
var ret = outputParser[displayName][typeName](output);
if (collapse)
{
- if (ret.length == 1)
+ if (ret.length === 1)
ret = ret[0];
- else if (ret.length == 0)
+ else if (ret.length === 0)
ret = null;
}
return ret;