Skip to content

Commit 3a1d175

Browse files
committed
admin: updated dist files
1 parent f02211d commit 3a1d175

14 files changed

+59
-74
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ 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.11.0 (2024-02-05 19:57)
6+
ethers/v6.11.0 (2024-02-08 20:26)
77
---------------------------------
88

9+
- Allow transaction encoding for inferred type transactions ([f02211d](https://github.com/ethers-io/ethers.js/commit/f02211d055567b51373b5faa2c3dc6efe0523618)).
910
- Added EIP-4788, receipts root and state root fields to Block ([#4570](https://github.com/ethers-io/ethers.js/issues/4570); [c5f126f](https://github.com/ethers-io/ethers.js/commit/c5f126faf7d826b6a99df0ee578ff3d0ef409381)).
1011
- Added EIP-4844 fields to Provider classes and formatter ([#4570](https://github.com/ethers-io/ethers.js/issues/4570); [7b4f2c1](https://github.com/ethers-io/ethers.js/commit/7b4f2c1a74db411829b5e8ef758bfa2ee21e5890)).
1112
- Assert BrowserProvider receives an EIP-1193 provider to fail early when passing undefined ethereum object ([b69f43b](https://github.com/ethers-io/ethers.js/commit/b69f43bc6f35da881ca7a0c8ccc5fda92edd076d)).

dist/ethers.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9709,10 +9709,9 @@ function _parseLegacy(data) {
97099709
return tx;
97109710
}
97119711
function _serializeLegacy(tx, sig) {
9712-
assertArgument(tx.isLegacy(), "internal check failed; !legacy", "tx", tx);
97139712
const fields = [
97149713
formatNumber(tx.nonce, "nonce"),
9715-
formatNumber(tx.gasPrice, "gasPrice"),
9714+
formatNumber(tx.gasPrice || 0, "gasPrice"),
97169715
formatNumber(tx.gasLimit, "gasLimit"),
97179716
(tx.to || "0x"),
97189717
formatNumber(tx.value, "value"),
@@ -9801,17 +9800,16 @@ function _parseEip1559(data) {
98019800
return tx;
98029801
}
98039802
function _serializeEip1559(tx, sig) {
9804-
assertArgument(tx.isLondon(), "internal check failed; !london", "tx", tx);
98059803
const fields = [
98069804
formatNumber(tx.chainId, "chainId"),
98079805
formatNumber(tx.nonce, "nonce"),
9808-
formatNumber(tx.maxPriorityFeePerGas, "maxPriorityFeePerGas"),
9809-
formatNumber(tx.maxFeePerGas, "maxFeePerGas"),
9806+
formatNumber(tx.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"),
9807+
formatNumber(tx.maxFeePerGas || 0, "maxFeePerGas"),
98109808
formatNumber(tx.gasLimit, "gasLimit"),
98119809
(tx.to || "0x"),
98129810
formatNumber(tx.value, "value"),
98139811
tx.data,
9814-
formatAccessList(tx.accessList)
9812+
formatAccessList(tx.accessList || [])
98159813
];
98169814
if (sig) {
98179815
fields.push(formatNumber(sig.yParity, "yParity"));
@@ -9843,16 +9841,15 @@ function _parseEip2930(data) {
98439841
return tx;
98449842
}
98459843
function _serializeEip2930(tx, sig) {
9846-
assertArgument(tx.isBerlin(), "internal check failed; !berlin", "tx", tx);
98479844
const fields = [
98489845
formatNumber(tx.chainId, "chainId"),
98499846
formatNumber(tx.nonce, "nonce"),
9850-
formatNumber(tx.gasPrice, "gasPrice"),
9847+
formatNumber(tx.gasPrice || 0, "gasPrice"),
98519848
formatNumber(tx.gasLimit, "gasLimit"),
98529849
(tx.to || "0x"),
98539850
formatNumber(tx.value, "value"),
98549851
tx.data,
9855-
formatAccessList(tx.accessList)
9852+
formatAccessList(tx.accessList || [])
98569853
];
98579854
if (sig) {
98589855
fields.push(formatNumber(sig.yParity, "recoveryParam"));
@@ -9893,19 +9890,18 @@ function _parseEip4844(data) {
98939890
return tx;
98949891
}
98959892
function _serializeEip4844(tx, sig) {
9896-
assertArgument(tx.isCancun(), "internal check failed; !cancun", "tx", tx);
98979893
const fields = [
98989894
formatNumber(tx.chainId, "chainId"),
98999895
formatNumber(tx.nonce, "nonce"),
9900-
formatNumber(tx.maxPriorityFeePerGas, "maxPriorityFeePerGas"),
9901-
formatNumber(tx.maxFeePerGas, "maxFeePerGas"),
9896+
formatNumber(tx.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"),
9897+
formatNumber(tx.maxFeePerGas || 0, "maxFeePerGas"),
99029898
formatNumber(tx.gasLimit, "gasLimit"),
9903-
tx.to,
9899+
(tx.to || ZeroAddress),
99049900
formatNumber(tx.value, "value"),
99059901
tx.data,
9906-
(formatAccessList(tx.accessList)),
9907-
formatNumber(tx.maxFeePerBlobGas, "maxFeePerBlobGas"),
9908-
formatHashes(tx.blobVersionedHashes, "blobVersionedHashes")
9902+
formatAccessList(tx.accessList || []),
9903+
formatNumber(tx.maxFeePerBlobGas || 0, "maxFeePerBlobGas"),
9904+
formatHashes(tx.blobVersionedHashes || [], "blobVersionedHashes")
99099905
];
99109906
if (sig) {
99119907
fields.push(formatNumber(sig.yParity, "yParity"));

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: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9715,10 +9715,9 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
97159715
return tx;
97169716
}
97179717
function _serializeLegacy(tx, sig) {
9718-
assertArgument(tx.isLegacy(), "internal check failed; !legacy", "tx", tx);
97199718
const fields = [
97209719
formatNumber(tx.nonce, "nonce"),
9721-
formatNumber(tx.gasPrice, "gasPrice"),
9720+
formatNumber(tx.gasPrice || 0, "gasPrice"),
97229721
formatNumber(tx.gasLimit, "gasLimit"),
97239722
(tx.to || "0x"),
97249723
formatNumber(tx.value, "value"),
@@ -9807,17 +9806,16 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
98079806
return tx;
98089807
}
98099808
function _serializeEip1559(tx, sig) {
9810-
assertArgument(tx.isLondon(), "internal check failed; !london", "tx", tx);
98119809
const fields = [
98129810
formatNumber(tx.chainId, "chainId"),
98139811
formatNumber(tx.nonce, "nonce"),
9814-
formatNumber(tx.maxPriorityFeePerGas, "maxPriorityFeePerGas"),
9815-
formatNumber(tx.maxFeePerGas, "maxFeePerGas"),
9812+
formatNumber(tx.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"),
9813+
formatNumber(tx.maxFeePerGas || 0, "maxFeePerGas"),
98169814
formatNumber(tx.gasLimit, "gasLimit"),
98179815
(tx.to || "0x"),
98189816
formatNumber(tx.value, "value"),
98199817
tx.data,
9820-
formatAccessList(tx.accessList)
9818+
formatAccessList(tx.accessList || [])
98219819
];
98229820
if (sig) {
98239821
fields.push(formatNumber(sig.yParity, "yParity"));
@@ -9849,16 +9847,15 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
98499847
return tx;
98509848
}
98519849
function _serializeEip2930(tx, sig) {
9852-
assertArgument(tx.isBerlin(), "internal check failed; !berlin", "tx", tx);
98539850
const fields = [
98549851
formatNumber(tx.chainId, "chainId"),
98559852
formatNumber(tx.nonce, "nonce"),
9856-
formatNumber(tx.gasPrice, "gasPrice"),
9853+
formatNumber(tx.gasPrice || 0, "gasPrice"),
98579854
formatNumber(tx.gasLimit, "gasLimit"),
98589855
(tx.to || "0x"),
98599856
formatNumber(tx.value, "value"),
98609857
tx.data,
9861-
formatAccessList(tx.accessList)
9858+
formatAccessList(tx.accessList || [])
98629859
];
98639860
if (sig) {
98649861
fields.push(formatNumber(sig.yParity, "recoveryParam"));
@@ -9899,19 +9896,18 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
98999896
return tx;
99009897
}
99019898
function _serializeEip4844(tx, sig) {
9902-
assertArgument(tx.isCancun(), "internal check failed; !cancun", "tx", tx);
99039899
const fields = [
99049900
formatNumber(tx.chainId, "chainId"),
99059901
formatNumber(tx.nonce, "nonce"),
9906-
formatNumber(tx.maxPriorityFeePerGas, "maxPriorityFeePerGas"),
9907-
formatNumber(tx.maxFeePerGas, "maxFeePerGas"),
9902+
formatNumber(tx.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"),
9903+
formatNumber(tx.maxFeePerGas || 0, "maxFeePerGas"),
99089904
formatNumber(tx.gasLimit, "gasLimit"),
9909-
tx.to,
9905+
(tx.to || ZeroAddress),
99109906
formatNumber(tx.value, "value"),
99119907
tx.data,
9912-
(formatAccessList(tx.accessList)),
9913-
formatNumber(tx.maxFeePerBlobGas, "maxFeePerBlobGas"),
9914-
formatHashes(tx.blobVersionedHashes, "blobVersionedHashes")
9908+
formatAccessList(tx.accessList || []),
9909+
formatNumber(tx.maxFeePerBlobGas || 0, "maxFeePerBlobGas"),
9910+
formatHashes(tx.blobVersionedHashes || [], "blobVersionedHashes")
99159911
];
99169912
if (sig) {
99179913
fields.push(formatNumber(sig.yParity, "yParity"));

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/transaction/transaction.d.ts.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/transaction/transaction.js

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

lib.commonjs/transaction/transaction.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)