Commit 47687cf0 authored by Marek Kotewicz's avatar Marek Kotewicz

default padding changed to 0

parent 92f171ec
...@@ -855,7 +855,7 @@ var web3 = { ...@@ -855,7 +855,7 @@ var web3 = {
}, },
fromAscii: function(str, pad) { fromAscii: function(str, pad) {
pad = pad === undefined ? 32 : pad; pad = pad === undefined ? 0 : pad;
var hex = this.toHex(str); var hex = this.toHex(str);
while(hex.length < pad*2) while(hex.length < pad*2)
hex += "00"; hex += "00";
......
This diff is collapsed.
This diff is collapsed.
...@@ -256,7 +256,7 @@ var web3 = { ...@@ -256,7 +256,7 @@ var web3 = {
}, },
fromAscii: function(str, pad) { fromAscii: function(str, pad) {
pad = pad === undefined ? 32 : pad; pad = pad === undefined ? 0 : pad;
var hex = this.toHex(str); var hex = this.toHex(str);
while(hex.length < pad*2) while(hex.length < pad*2)
hex += "00"; hex += "00";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment