aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-10 00:27:56 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-10 00:27:56 +0800
commit47687cf085196e2e4fa7ec42ff426f241dae10c5 (patch)
tree76441477e79282cd2809ef14b7346831ca3844c5 /lib
parent92f171ec997fe478cd1e87b8f91ee127b2fb49f3 (diff)
downloadgo-tangerine-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar.gz
go-tangerine-47687cf085196e2e4fa7ec42ff426f241dae10c5.tar.zst
go-tangerine-47687cf085196e2e4fa7ec42ff426f241dae10c5.zip
default padding changed to 0
Diffstat (limited to 'lib')
-rw-r--r--lib/web3.js2
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";