Simplified while loop in FromBase58 to match ToBase58

This commit is contained in:
bwhitn 2018-10-28 18:37:00 -04:00
parent f4de4de8c1
commit a3c5b1e107
1 changed files with 1 additions and 2 deletions

View File

@ -103,9 +103,8 @@ class FromBase58 extends Operation {
}
});
while (zeroPrefix > 0) {
while (zeroPrefix--) {
result.push(0);
zeroPrefix--;
}
return result.reverse();