Simplified while loop in FromBase58 to match ToBase58

This commit is contained in:
bwhitn committed 2018-10-28 18:37:00 -04:00
1 parent f4de4de8c1
commit a3c5b1e107
1 file changed
+1 -2
+1 -2
View File
@@ -103,9 +103,8 @@ class FromBase58 extends Operation {
}
});
while (zeroPrefix > 0) {
while (zeroPrefix--) {
result.push(0);
zeroPrefix--;
}
return result.reverse();