diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-10 00:27:56 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-10 00:27:56 +0800 |
commit | 47687cf085196e2e4fa7ec42ff426f241dae10c5 (patch) | |
tree | 76441477e79282cd2809ef14b7346831ca3844c5 /lib | |
parent | 92f171ec997fe478cd1e87b8f91ee127b2fb49f3 (diff) | |
download | dexon-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar dexon-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar.gz dexon-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar.bz2 dexon-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar.lz dexon-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar.xz dexon-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar.zst dexon-47687cf085196e2e4fa7ec42ff426f241dae10c5.zip |
default padding changed to 0
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"; |