Skip to content

Commit 6017d3d

Browse files
committed
admin: updated dist files
1 parent ccac24a commit 6017d3d

20 files changed

+59
-22
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Change Log
33

44
This change log is maintained by `src.ts/_admin/update-changelog.ts` but may also be manually updated.
55

6+
ethers/v6.9.2 (2024-01-02 19:12)
7+
--------------------------------
8+
9+
- Fix Base58 padding for string representation of binary data ([#4527](https://github.com/ethers-io/ethers.js/issues/4527); [ccac24a](https://github.com/ethers-io/ethers.js/commit/ccac24a5b0a4d07a4b639c1c4d0a44703e32d418)).
10+
611
ethers/v6.9.1 (2023-12-19 04:53)
712
--------------------------------
813

dist/ethers.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
33
/**
44
* The current version of Ethers.
55
*/
6-
const version = "6.9.1";
6+
const version = "6.9.2";
77

88
/**
99
* Property helper functions.
@@ -695,12 +695,20 @@ const BN_58 = BigInt(58);
695695
* Encode %%value%% as a Base58-encoded string.
696696
*/
697697
function encodeBase58(_value) {
698-
let value = toBigInt(getBytes(_value));
698+
const bytes = getBytes(_value);
699+
let value = toBigInt(bytes);
699700
let result = "";
700701
while (value) {
701702
result = Alphabet[Number(value % BN_58)] + result;
702703
value /= BN_58;
703704
}
705+
// Account for leading padding zeros
706+
for (let i = 0; i < bytes.length; i++) {
707+
if (bytes[i]) {
708+
break;
709+
}
710+
result = Alphabet[0] + result;
711+
}
704712
return result;
705713
}
706714
/**

dist/ethers.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ethers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ethers.umd.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
99
/**
1010
* The current version of Ethers.
1111
*/
12-
const version = "6.9.1";
12+
const version = "6.9.2";
1313

1414
/**
1515
* Property helper functions.
@@ -701,12 +701,20 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
701701
* Encode %%value%% as a Base58-encoded string.
702702
*/
703703
function encodeBase58(_value) {
704-
let value = toBigInt(getBytes(_value));
704+
const bytes = getBytes(_value);
705+
let value = toBigInt(bytes);
705706
let result = "";
706707
while (value) {
707708
result = Alphabet[Number(value % BN_58)] + result;
708709
value /= BN_58;
709710
}
711+
// Account for leading padding zeros
712+
for (let i = 0; i < bytes.length; i++) {
713+
if (bytes[i]) {
714+
break;
715+
}
716+
result = Alphabet[0] + result;
717+
}
710718
return result;
711719
}
712720
/**

dist/ethers.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ethers.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/wordlists-extra.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/wordlists-extra.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/wordlists-extra.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)