Skip to content

Commit 2d2572a

Browse files
committed
admin: update dist files
1 parent cebe5ee commit 2d2572a

29 files changed

+104
-30
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ 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.12.2 (2024-05-16 11:03)
6+
ethers/v6.12.2 (2024-05-30 17:24)
77
---------------------------------
88

9-
- Added Base endpoints to EtherscanProvider ([#4729](https://github.com/ethers-io/ethers.js/issues/4729); [7e1dc95](https://github.com/ethers-io/ethers.js/commit/7e1dc95ea2564c1eb0a9452b9a16002f3696765c)).
9+
- Copy EIP-4844 properties during estimateGas and call ([#4728](https://github.com/ethers-io/ethers.js/issues/4728); [cebe5ee](https://github.com/ethers-io/ethers.js/commit/cebe5eed91de0db5931b7847e76ee27cb2ce9219)).
10+
- Use non-capturing regex for data to prevent memory exhaustion for long strings ([#4741](https://github.com/ethers-io/ethers.js/issues/4741); [5463aa0](https://github.com/ethers-io/ethers.js/commit/5463aa03eacde45322a1e05693ce90e4d7abcaa7)).
11+
- Added Base endpointsto EtherscanProvider ([#4729](https://github.com/ethers-io/ethers.js/issues/4729); [7e1dc95](https://github.com/ethers-io/ethers.js/commit/7e1dc95ea2564c1eb0a9452b9a16002f3696765c)).
1012

1113
ethers/v6.12.1 (2024-04-30 22:46)
1214
---------------------------------

dist/ethers.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function _getBytes(value, name, copy) {
294294
}
295295
return value;
296296
}
297-
if (typeof (value) === "string" && value.match(/^0x([0-9a-f][0-9a-f])*$/i)) {
297+
if (typeof (value) === "string" && value.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {
298298
const result = new Uint8Array((value.length - 2) / 2);
299299
let offset = 2;
300300
for (let i = 0; i < result.length; i++) {
@@ -20182,7 +20182,7 @@ class JsonRpcApiProvider extends AbstractProvider {
2018220182
if (req.method === "call" || req.method === "estimateGas") {
2018320183
let tx = req.transaction;
2018420184
if (tx && tx.type != null && getBigInt(tx.type)) {
20185-
// If there are no EIP-1559 properties, it might be non-EIP-a559
20185+
// If there are no EIP-1559 or newer properties, it might be pre-EIP-1559
2018620186
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
2018720187
const feeData = await this.getFeeData();
2018820188
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
@@ -20361,6 +20361,14 @@ class JsonRpcApiProvider extends AbstractProvider {
2036120361
if (tx.accessList) {
2036220362
result["accessList"] = accessListify(tx.accessList);
2036320363
}
20364+
if (tx.blobVersionedHashes) {
20365+
// @TODO: Remove this <any> case once EIP-4844 added to prepared tx
20366+
result["blobVersionedHashes"] = tx.blobVersionedHashes.map(h => h.toLowerCase());
20367+
}
20368+
// @TODO: blobs should probably also be copied over, optionally
20369+
// accounting for the kzg property to backfill blobVersionedHashes
20370+
// using the commitment. Or should that be left as an exercise to
20371+
// the caller?
2036420372
return result;
2036520373
}
2036620374
/**
@@ -21412,6 +21420,16 @@ class EtherscanProvider extends AbstractProvider {
2141221420
return `{address:"${set.address}",storageKeys:["${set.storageKeys.join('","')}"]}`;
2141321421
}).join(",") + "]";
2141421422
}
21423+
else if (key === "blobVersionedHashes") {
21424+
if (value.length === 0) {
21425+
continue;
21426+
}
21427+
// @TODO: update this once the API supports blobs
21428+
assert(false, "Etherscan API does not support blobVersionedHashes", "UNSUPPORTED_OPERATION", {
21429+
operation: "_getTransactionPostData",
21430+
info: { transaction }
21431+
});
21432+
}
2141521433
else {
2141621434
value = hexlify(value);
2141721435
}

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: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
300300
}
301301
return value;
302302
}
303-
if (typeof (value) === "string" && value.match(/^0x([0-9a-f][0-9a-f])*$/i)) {
303+
if (typeof (value) === "string" && value.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {
304304
const result = new Uint8Array((value.length - 2) / 2);
305305
let offset = 2;
306306
for (let i = 0; i < result.length; i++) {
@@ -20188,7 +20188,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
2018820188
if (req.method === "call" || req.method === "estimateGas") {
2018920189
let tx = req.transaction;
2019020190
if (tx && tx.type != null && getBigInt(tx.type)) {
20191-
// If there are no EIP-1559 properties, it might be non-EIP-a559
20191+
// If there are no EIP-1559 or newer properties, it might be pre-EIP-1559
2019220192
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
2019320193
const feeData = await this.getFeeData();
2019420194
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
@@ -20367,6 +20367,14 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
2036720367
if (tx.accessList) {
2036820368
result["accessList"] = accessListify(tx.accessList);
2036920369
}
20370+
if (tx.blobVersionedHashes) {
20371+
// @TODO: Remove this <any> case once EIP-4844 added to prepared tx
20372+
result["blobVersionedHashes"] = tx.blobVersionedHashes.map(h => h.toLowerCase());
20373+
}
20374+
// @TODO: blobs should probably also be copied over, optionally
20375+
// accounting for the kzg property to backfill blobVersionedHashes
20376+
// using the commitment. Or should that be left as an exercise to
20377+
// the caller?
2037020378
return result;
2037120379
}
2037220380
/**
@@ -21418,6 +21426,16 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
2141821426
return `{address:"${set.address}",storageKeys:["${set.storageKeys.join('","')}"]}`;
2141921427
}).join(",") + "]";
2142021428
}
21429+
else if (key === "blobVersionedHashes") {
21430+
if (value.length === 0) {
21431+
continue;
21432+
}
21433+
// @TODO: update this once the API supports blobs
21434+
assert(false, "Etherscan API does not support blobVersionedHashes", "UNSUPPORTED_OPERATION", {
21435+
operation: "_getTransactionPostData",
21436+
info: { transaction }
21437+
});
21438+
}
2142121439
else {
2142221440
value = hexlify(value);
2142321441
}

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)