diff options
Diffstat (limited to 'lib/abi.js')
-rw-r--r-- | lib/abi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/abi.js b/lib/abi.js index 2cff503d3..21607f140 100644 --- a/lib/abi.js +++ b/lib/abi.js @@ -46,7 +46,7 @@ var findMethodIndex = function (json, methodName) { }; var padLeft = function (string, chars) { - return Array(chars - string.length + 1).join("0") + string; + return new Array(chars - string.length + 1).join("0") + string; }; var setupInputTypes = function () { |