mirror of https://github.com/status-im/web3.js.git
Fixed padLeft for iban addresses.
This commit is contained in:
parent
3ba32a6734
commit
dc9da1a385
|
@ -25,7 +25,7 @@ var BigNumber = require('bignumber.js');
|
|||
var padLeft = function (string, bytes) {
|
||||
var result = string;
|
||||
while (result.length < bytes * 2) {
|
||||
result = '00' + result;
|
||||
result = '0' + result;
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue