diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/web3.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web3.js b/lib/web3.js index 9a85c4d1b..4220114f9 100644 --- a/lib/web3.js +++ b/lib/web3.js @@ -256,7 +256,7 @@ var web3 = { }, fromAscii: function(str, pad) { - pad = pad === undefined ? 32 : pad; + pad = pad === undefined ? 0 : pad; var hex = this.toHex(str); while(hex.length < pad*2) hex += "00"; |