default padding changed to 0

This commit is contained in:
Marek Kotewicz 2015-01-09 17:27:56 +01:00
parent 92f171ec99
commit 47687cf085
4 changed files with 4 additions and 4 deletions

2
dist/ethereum.js vendored
View File

@ -855,7 +855,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";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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";