Skip to content

Commit

Permalink
admin: updated dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 28, 2023
1 parent 9197f9f commit 3c17cf5
Show file tree
Hide file tree
Showing 24 changed files with 75 additions and 44 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ Change Log

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

ethers/v6.6.2 (2023-06-27 23:30)
--------------------------------

- Wider error detection for call exceptions on certain backends ([#4154](https://github.com/ethers-io/ethers.js/issues/4154), [#4155](https://github.com/ethers-io/ethers.js/issues/4155); [9197f9f](https://github.com/ethers-io/ethers.js/commit/9197f9f938b5f3b5f97c043f2dab06854656c932)).
- Added wider error deetection for JSON-RPC unsupported operation ([#4162](https://github.com/ethers-io/ethers.js/issues/4162); [1dc8986](https://github.com/ethers-io/ethers.js/commit/1dc8986a33be9dce536b24189326cbfaabf1342e)).
- Fixed formatUnits and parseUnits for values over 128 bits ([#4037](https://github.com/ethers-io/ethers.js/issues/4037), [#4133](https://github.com/ethers-io/ethers.js/issues/4133); [3d141b4](https://github.com/ethers-io/ethers.js/commit/3d141b44b528f52b3c9205125b64ce342f91643c)).

ethers/v6.6.1 (2023-06-23 00:35)
--------------------------------

Expand Down
20 changes: 13 additions & 7 deletions dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
/**
* The current version of Ethers.
*/
const version = "6.6.1";
const version = "6.6.2";

/**
* Property helper functions.
Expand Down Expand Up @@ -2498,7 +2498,7 @@ function formatUnits(value, unit) {
else if (unit != null) {
decimals = getNumber(unit, "unit");
}
return FixedNumber.fromValue(value, decimals, { decimals }).toString();
return FixedNumber.fromValue(value, decimals, { decimals, width: 512 }).toString();
}
/**
* Converts the //decimal string// %%value%% to a BigInt, assuming
Expand All @@ -2516,7 +2516,7 @@ function parseUnits(value, unit) {
else if (unit != null) {
decimals = getNumber(unit, "unit");
}
return FixedNumber.fromString(value, { decimals }).value;
return FixedNumber.fromString(value, { decimals, width: 512 }).value;
}
/**
* Converts %%value%% into a //decimal string// using 18 decimal places.
Expand Down Expand Up @@ -18867,12 +18867,18 @@ class JsonRpcApiProvider extends AbstractProvider {
});
}
}
if (message.match(/the method .* does not exist/i)) {
let unsupported = !!message.match(/the method .* does not exist/i);
if (!unsupported) {
if (error && error.details && error.details.startsWith("Unauthorized method:")) {
unsupported = true;
}
}
if (unsupported) {
return makeError("unsupported operation", "UNSUPPORTED_OPERATION", {
operation: payload.method, info: { error }
operation: payload.method, info: { error, payload }
});
}
return makeError("could not coalesce error", "UNKNOWN_ERROR", { error });
return makeError("could not coalesce error", "UNKNOWN_ERROR", { error, payload });
}
/**
* Requests the %%method%% with %%params%% via the JSON-RPC protocol
Expand Down Expand Up @@ -19041,7 +19047,7 @@ function spelunkData(value) {
return null;
}
// These *are* the droids we're looking for.
if (typeof (value.message) === "string" && value.message.match("reverted") && isHexString(value.data)) {
if (typeof (value.message) === "string" && value.message.match(/revert/i) && isHexString(value.data)) {
return { message: value.message, data: value.data };
}
// Spelunk further...
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.min.js

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
/**
* The current version of Ethers.
*/
const version = "6.6.1";
const version = "6.6.2";

/**
* Property helper functions.
Expand Down Expand Up @@ -2504,7 +2504,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
else if (unit != null) {
decimals = getNumber(unit, "unit");
}
return FixedNumber.fromValue(value, decimals, { decimals }).toString();
return FixedNumber.fromValue(value, decimals, { decimals, width: 512 }).toString();
}
/**
* Converts the //decimal string// %%value%% to a BigInt, assuming
Expand All @@ -2522,7 +2522,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
else if (unit != null) {
decimals = getNumber(unit, "unit");
}
return FixedNumber.fromString(value, { decimals }).value;
return FixedNumber.fromString(value, { decimals, width: 512 }).value;
}
/**
* Converts %%value%% into a //decimal string// using 18 decimal places.
Expand Down Expand Up @@ -18873,12 +18873,18 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
});
}
}
if (message.match(/the method .* does not exist/i)) {
let unsupported = !!message.match(/the method .* does not exist/i);
if (!unsupported) {
if (error && error.details && error.details.startsWith("Unauthorized method:")) {
unsupported = true;
}
}
if (unsupported) {
return makeError("unsupported operation", "UNSUPPORTED_OPERATION", {
operation: payload.method, info: { error }
operation: payload.method, info: { error, payload }
});
}
return makeError("could not coalesce error", "UNKNOWN_ERROR", { error });
return makeError("could not coalesce error", "UNKNOWN_ERROR", { error, payload });
}
/**
* Requests the %%method%% with %%params%% via the JSON-RPC protocol
Expand Down Expand Up @@ -19047,7 +19053,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
return null;
}
// These *are* the droids we're looking for.
if (typeof (value.message) === "string" && value.message.match("reverted") && isHexString(value.data)) {
if (typeof (value.message) === "string" && value.message.match(/revert/i) && isHexString(value.data)) {
return { message: value.message, data: value.data };
}
// Spelunk further...
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wordlists-extra.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wordlists-extra.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wordlists-extra.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.commonjs/_version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider-jsonrpc.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions lib.commonjs/providers/provider-jsonrpc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider-jsonrpc.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib.commonjs/utils/units.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c17cf5

Please sign in to comment.