Skip to content

Commit 29be1e3

Browse files
committed
Updated dist files.
1 parent e727efc commit 29be1e3

25 files changed

+151
-33
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Changelog
33

44
This change log is managed by `admin/cmds/update-versions` but may be manually updated.
55

6-
ethers/v5.0.27 (2021-01-31 19:36)
6+
ethers/v5.0.27 (2021-02-01 15:55)
77
---------------------------------
88

9+
- Added support for networks with slightly incorrect EIP-658 implementations. ([#952](https://github.com/ethers-io/ethers.js/issues/952), [#1251](https://github.com/ethers-io/ethers.js/issues/1251); [e727efc](https://github.com/ethers-io/ethers.js/commit/e727efc33eaa31c3af6adbb64a893caf354d0ba7))
10+
- Added Pocket network to the default provider. ([#1030](https://github.com/ethers-io/ethers.js/issues/1030), [#1052](https://github.com/ethers-io/ethers.js/issues/1052); [4af2c19](https://github.com/ethers-io/ethers.js/commit/4af2c19f455bb43406d3cc5421c3b3fdda75f78f))
911
- Added TypeScript declaration maps. ([#401](https://github.com/ethers-io/ethers.js/issues/401); [3396846](https://github.com/ethers-io/ethers.js/commit/3396846a30a4be0ed58fe449589e7e4e54f3d32e))
1012

1113
ethers/v5.0.26 (2021-01-13 14:47)
@@ -217,4 +219,4 @@ ethers/v5.0.0 (2020-06-12 19:58)
217219
--------------------------------
218220

219221
- Preserve config canary string. ([7157816](https://github.com/ethers-io/ethers.js/commit/7157816fa53f660d750811b293e3b1d5a2f70bd4))
220-
- Updated docs. ([9e4c7e6](https://github.com/ethers-io/ethers.js/commit/9e4c7e609d9eeb5f2a11d6a90bfa9d32ee696431))
222+
- Updated docs. ([9e4c7e6](https://github.com/ethers-io/ethers.js/commit/9e4c7e609d9eeb5f2a11d6a90bfa9d32ee696431))

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/dist/ethers.esm.js

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16842,6 +16842,12 @@ function ethDefaultProvider(network) {
1684216842
}
1684316843
catch (error) { }
1684416844
}
16845+
if (providers.PocketProvider) {
16846+
try {
16847+
providerList.push(new providers.PocketProvider(network));
16848+
}
16849+
catch (error) { }
16850+
}
1684516851
if (providers.CloudflareProvider) {
1684616852
try {
1684716853
providerList.push(new providers.CloudflareProvider(network));
@@ -17686,7 +17692,8 @@ class Formatter {
1768617692
from: Formatter.allowNull(this.address, null),
1768717693
contractAddress: Formatter.allowNull(address, null),
1768817694
transactionIndex: number,
17689-
root: Formatter.allowNull(hash),
17695+
// should be allowNull(hash), but broken-EIP-658 support is handled in receipt
17696+
root: Formatter.allowNull(hex),
1769017697
gasUsed: bigNumber,
1769117698
logsBloom: Formatter.allowNull(data),
1769217699
blockHash: hash,
@@ -17934,7 +17941,29 @@ class Formatter {
1793417941
}
1793517942
receipt(value) {
1793617943
const result = Formatter.check(this.formats.receipt, value);
17937-
if (value.status != null) {
17944+
// RSK incorrectly implemented EIP-658, so we munge things a bit here for it
17945+
if (result.root != null) {
17946+
if (result.root.length <= 4) {
17947+
// Could be 0x00, 0x0, 0x01 or 0x1
17948+
const value = BigNumber.from(result.root).toNumber();
17949+
if (value === 0 || value === 1) {
17950+
// Make sure if both are specified, they match
17951+
if (result.status != null && (result.status !== value)) {
17952+
logger$s.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
17953+
}
17954+
result.status = value;
17955+
delete result.root;
17956+
}
17957+
else {
17958+
logger$s.throwArgumentError("invalid alt-root-status", "value.root", result.root);
17959+
}
17960+
}
17961+
else if (result.root.length !== 66) {
17962+
// Must be a valid bytes32
17963+
logger$s.throwArgumentError("invalid root hash", "value.root", result.root);
17964+
}
17965+
}
17966+
if (result.status != null) {
1793817967
result.byzantium = true;
1793917968
}
1794017969
return result;

packages/ethers/dist/ethers.esm.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.

packages/ethers/dist/ethers.esm.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.

packages/ethers/dist/ethers.esm.min.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.

packages/ethers/dist/ethers.umd.js

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18770,6 +18770,12 @@
1877018770
}
1877118771
catch (error) { }
1877218772
}
18773+
if (providers.PocketProvider) {
18774+
try {
18775+
providerList.push(new providers.PocketProvider(network));
18776+
}
18777+
catch (error) { }
18778+
}
1877318779
if (providers.CloudflareProvider) {
1877418780
try {
1877518781
providerList.push(new providers.CloudflareProvider(network));
@@ -19773,7 +19779,8 @@
1977319779
from: Formatter.allowNull(this.address, null),
1977419780
contractAddress: Formatter.allowNull(address, null),
1977519781
transactionIndex: number,
19776-
root: Formatter.allowNull(hash),
19782+
// should be allowNull(hash), but broken-EIP-658 support is handled in receipt
19783+
root: Formatter.allowNull(hex),
1977719784
gasUsed: bigNumber,
1977819785
logsBloom: Formatter.allowNull(data),
1977919786
blockHash: hash,
@@ -20021,7 +20028,29 @@
2002120028
};
2002220029
Formatter.prototype.receipt = function (value) {
2002320030
var result = Formatter.check(this.formats.receipt, value);
20024-
if (value.status != null) {
20031+
// RSK incorrectly implemented EIP-658, so we munge things a bit here for it
20032+
if (result.root != null) {
20033+
if (result.root.length <= 4) {
20034+
// Could be 0x00, 0x0, 0x01 or 0x1
20035+
var value_1 = lib$2.BigNumber.from(result.root).toNumber();
20036+
if (value_1 === 0 || value_1 === 1) {
20037+
// Make sure if both are specified, they match
20038+
if (result.status != null && (result.status !== value_1)) {
20039+
logger.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
20040+
}
20041+
result.status = value_1;
20042+
delete result.root;
20043+
}
20044+
else {
20045+
logger.throwArgumentError("invalid alt-root-status", "value.root", result.root);
20046+
}
20047+
}
20048+
else if (result.root.length !== 66) {
20049+
// Must be a valid bytes32
20050+
logger.throwArgumentError("invalid root hash", "value.root", result.root);
20051+
}
20052+
}
20053+
if (result.status != null) {
2002520054
result.byzantium = true;
2002620055
}
2002720056
return result;

packages/ethers/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.

packages/ethers/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.

packages/ethers/dist/ethers.umd.min.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.

0 commit comments

Comments
 (0)