Skip to content

Commit d661f70

Browse files
committed
admin: updated dist files
1 parent 62c798c commit d661f70

25 files changed

+56
-42
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ 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.2.0 (2023-03-20 13:33)
6+
ethers/v6.2.0 (2023-03-20 15:53)
77
--------------------------------
88

9+
- Added extra details in the error info field for RPC errors ([30ffa78](https://github.com/ethers-io/ethers.js/commit/30ffa78d1441fa033677fa09237fc135a314f373)).
10+
- Remove Ankr as a deafult for now as the provided API key is failing ([6e01e54](https://github.com/ethers-io/ethers.js/commit/6e01e5448f4a3e2d30288d4c8447db295c3a2e7a)).
11+
- Fixed deferred filters after unsafe-eval changes ([#3749](https://github.com/ethers-io/ethers.js/issues/3749), [#3763](https://github.com/ethers-io/ethers.js/issues/3763); [2e3802a](https://github.com/ethers-io/ethers.js/commit/2e3802a83b8ad2f5a6269d79fbd1c83c9f2d1047)).
912
- tests: updated ENS normalization tests to latest standard ([0a9e4cd](https://github.com/ethers-io/ethers.js/commit/0a9e4cd67dd0187445930cdb9d75d548590af9b2)).
10-
- Remove use of Function sub-class to address unsafe-eval issues ([#3749](https://github.com/ethers-io/ethers.js/issues/3749), [#3763](https://github.com/ethers-io/ethers.js/issues/3763); [7d3af51](https://github.com/ethers-io/ethers.js/commit/7d3af512c75b4c24027ec2daef1e9f4c1064194a), [2e3802a](https://github.com/ethers-io/ethers.js/commit/2e3802a83b8ad2f5a6269d79fbd1c83c9f2d1047)).
13+
- Remove use of Function sub-class to address unsafe-eval issues ([#3749](https://github.com/ethers-io/ethers.js/issues/3749), [#3763](https://github.com/ethers-io/ethers.js/issues/3763); [7d3af51](https://github.com/ethers-io/ethers.js/commit/7d3af512c75b4c24027ec2daef1e9f4c1064194a)).
1114
- tests: added contract integration tests and llocal Geth ([5318b93](https://github.com/ethers-io/ethers.js/commit/5318b939fdfe8f58cdea4bdff7923f18afbea3a2)).
1215
- Added verifyTypedData utility (reported on Farcaster) ([f06a445](https://github.com/ethers-io/ethers.js/commit/f06a445247f3b294f9fc805cc8fe0752accb8edc)).
1316
- Removed stray logging in IpcProvider ([#3908](https://github.com/ethers-io/ethers.js/issues/3908), [#3909](https://github.com/ethers-io/ethers.js/issues/3909); [e11d4c1](https://github.com/ethers-io/ethers.js/commit/e11d4c1c20cc5b6fd5803cf9636c4f5bc082dab7)).

dist/ethers.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17485,7 +17485,7 @@ class JsonRpcApiProvider extends AbstractProvider {
1748517485
const resp = result.filter((r) => (r.id === payload.id))[0];
1748617486
// No result; the node failed us in unexpected ways
1748717487
if (resp == null) {
17488-
return reject(new Error("@TODO: no result"));
17488+
return reject(makeError("no response from server", "BAD_DATA", { value: result, info: { payload } }));
1748917489
}
1749017490
// The response is an error
1749117491
if ("error" in resp) {
@@ -17816,6 +17816,7 @@ class JsonRpcApiProvider extends AbstractProvider {
1781617816
if (!msg.match(/revert/i) && msg.match(/insufficient funds/i)) {
1781717817
return makeError("insufficient funds", "INSUFFICIENT_FUNDS", {
1781817818
transaction: (payload.params[0]),
17819+
info: { payload, error }
1781917820
});
1782017821
}
1782117822
}
@@ -17852,15 +17853,15 @@ class JsonRpcApiProvider extends AbstractProvider {
1785217853
});
1785317854
}
1785417855
if (message.match(/nonce/i) && message.match(/too low/i)) {
17855-
return makeError("nonce has already been used", "NONCE_EXPIRED", { transaction });
17856+
return makeError("nonce has already been used", "NONCE_EXPIRED", { transaction, info: { error } });
1785617857
}
1785717858
// "replacement transaction underpriced"
1785817859
if (message.match(/replacement transaction/i) && message.match(/underpriced/i)) {
17859-
return makeError("replacement fee too low", "REPLACEMENT_UNDERPRICED", { transaction });
17860+
return makeError("replacement fee too low", "REPLACEMENT_UNDERPRICED", { transaction, info: { error } });
1786017861
}
1786117862
if (message.match(/only replay-protected/i)) {
1786217863
return makeError("legacy pre-eip-155 transactions not supported", "UNSUPPORTED_OPERATION", {
17863-
operation: method, info: { transaction }
17864+
operation: method, info: { transaction, info: { error } }
1786417865
});
1786517866
}
1786617867
}
@@ -19907,7 +19908,7 @@ function getDefaultProvider(network, options) {
1990719908
console.log(error);
1990819909
}
1990919910
}
19910-
if (options.ankr !== "-") {
19911+
if (options.ankr !== "-" && options.ankr != null) {
1991119912
try {
1991219913
providers.push(new AnkrProvider(network, options.ankr));
1991319914
}

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: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17491,7 +17491,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1749117491
const resp = result.filter((r) => (r.id === payload.id))[0];
1749217492
// No result; the node failed us in unexpected ways
1749317493
if (resp == null) {
17494-
return reject(new Error("@TODO: no result"));
17494+
return reject(makeError("no response from server", "BAD_DATA", { value: result, info: { payload } }));
1749517495
}
1749617496
// The response is an error
1749717497
if ("error" in resp) {
@@ -17822,6 +17822,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1782217822
if (!msg.match(/revert/i) && msg.match(/insufficient funds/i)) {
1782317823
return makeError("insufficient funds", "INSUFFICIENT_FUNDS", {
1782417824
transaction: (payload.params[0]),
17825+
info: { payload, error }
1782517826
});
1782617827
}
1782717828
}
@@ -17858,15 +17859,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1785817859
});
1785917860
}
1786017861
if (message.match(/nonce/i) && message.match(/too low/i)) {
17861-
return makeError("nonce has already been used", "NONCE_EXPIRED", { transaction });
17862+
return makeError("nonce has already been used", "NONCE_EXPIRED", { transaction, info: { error } });
1786217863
}
1786317864
// "replacement transaction underpriced"
1786417865
if (message.match(/replacement transaction/i) && message.match(/underpriced/i)) {
17865-
return makeError("replacement fee too low", "REPLACEMENT_UNDERPRICED", { transaction });
17866+
return makeError("replacement fee too low", "REPLACEMENT_UNDERPRICED", { transaction, info: { error } });
1786617867
}
1786717868
if (message.match(/only replay-protected/i)) {
1786817869
return makeError("legacy pre-eip-155 transactions not supported", "UNSUPPORTED_OPERATION", {
17869-
operation: method, info: { transaction }
17870+
operation: method, info: { transaction, info: { error } }
1787017871
});
1787117872
}
1787217873
}
@@ -19913,7 +19914,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1991319914
console.log(error);
1991419915
}
1991519916
}
19916-
if (options.ankr !== "-") {
19917+
if (options.ankr !== "-" && options.ankr != null) {
1991719918
try {
1991819919
providers.push(new AnkrProvider(network, options.ankr));
1991919920
}

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.

lib.commonjs/_tests/create-provider.js

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

lib.commonjs/_tests/create-provider.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.

lib.commonjs/_tests/test-providers-errors.js

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

0 commit comments

Comments
 (0)