Skip to content

Commit 29beb93

Browse files
committed
admin: updated dist files
1 parent 9230aa0 commit 29beb93

32 files changed

+95
-37
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ 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.0 (2024-04-09 21:12)
6+
ethers/v6.12.0 (2024-04-12 00:11)
77
---------------------------------
88

9+
- Better error messages for transaction field mismatch ([#4659](https://github.com/ethers-io/ethers.js/issues/4659); [9230aa0](https://github.com/ethers-io/ethers.js/commit/9230aa0b9a88b5241915a8d6afa8a522d35abd5d)).
10+
- Added prevRandao to block ([#3372](https://github.com/ethers-io/ethers.js/issues/3372); [ec6a754](https://github.com/ethers-io/ethers.js/commit/ec6a754f0c8647dae59c73b2589225cb200d83dd)).
911
- Added Polygon Amoy testnet ([#4645](https://github.com/ethers-io/ethers.js/issues/4645); [1717abb](https://github.com/ethers-io/ethers.js/commit/1717abbf29a14a6f6b106e479fe9a5b1f8768dc4)).
1012
- Added Chainstack provider ([#2741](https://github.com/ethers-io/ethers.js/issues/2741); [014004d](https://github.com/ethers-io/ethers.js/commit/014004d9402d7fd8c15553792cfb7a8a84ed327a)).
1113
- Added deep convertion to Result for toObject and toArray ([#4681](https://github.com/ethers-io/ethers.js/issues/4681); [03bfe2a](https://github.com/ethers-io/ethers.js/commit/03bfe2a4f7b29b15cd90127974b7fc1d8b03edf9)).

dist/ethers.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10592,11 +10592,11 @@ class Transaction {
1059210592
result.blobs = tx.blobs;
1059310593
}
1059410594
if (tx.hash != null) {
10595-
assertArgument(result.isSigned(), "unsigned transaction cannot define hash", "tx", tx);
10595+
assertArgument(result.isSigned(), "unsigned transaction cannot define '.hash'", "tx", tx);
1059610596
assertArgument(result.hash === tx.hash, "hash mismatch", "tx", tx);
1059710597
}
1059810598
if (tx.from != null) {
10599-
assertArgument(result.isSigned(), "unsigned transaction cannot define from", "tx", tx);
10599+
assertArgument(result.isSigned(), "unsigned transaction cannot define '.from'", "tx", tx);
1060010600
assertArgument(result.from.toLowerCase() === (tx.from || "").toLowerCase(), "from mismatch", "tx", tx);
1060110601
}
1060210602
return result;
@@ -14113,6 +14113,11 @@ class Block {
1411314113
* including this block.
1411414114
*/
1411514115
miner;
14116+
/**
14117+
* The latest RANDAO mix of the post beacon state of
14118+
* the previous block.
14119+
*/
14120+
prevRandao;
1411614121
/**
1411714122
* Any extra data the validator wished to include.
1411814123
*/
@@ -14153,6 +14158,7 @@ class Block {
1415314158
blobGasUsed: block.blobGasUsed,
1415414159
excessBlobGas: block.excessBlobGas,
1415514160
miner: block.miner,
14161+
prevRandao: getValue(block.prevRandao),
1415614162
extraData: block.extraData,
1415714163
baseFeePerGas: getValue(block.baseFeePerGas),
1415814164
stateRoot: block.stateRoot,
@@ -14195,7 +14201,7 @@ class Block {
1419514201
* Returns a JSON-friendly value.
1419614202
*/
1419714203
toJSON() {
14198-
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
14204+
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, prevRandao, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
1419914205
return {
1420014206
_type: "Block",
1420114207
baseFeePerGas: toJson(baseFeePerGas),
@@ -14205,7 +14211,7 @@ class Block {
1420514211
gasUsed: toJson(gasUsed),
1420614212
blobGasUsed: toJson(this.blobGasUsed),
1420714213
excessBlobGas: toJson(this.excessBlobGas),
14208-
hash, miner, nonce, number, parentHash, timestamp,
14214+
hash, miner, prevRandao, nonce, number, parentHash, timestamp,
1420914215
parentBeaconBlockRoot, stateRoot, receiptsRoot,
1421014216
transactions,
1421114217
};
@@ -17000,8 +17006,11 @@ const _formatBlock = object({
1700017006
blobGasUsed: allowNull(getBigInt, null),
1700117007
excessBlobGas: allowNull(getBigInt, null),
1700217008
miner: allowNull(getAddress),
17009+
prevRandao: allowNull(formatHash, null),
1700317010
extraData: formatData,
1700417011
baseFeePerGas: allowNull(getBigInt)
17012+
}, {
17013+
prevRandao: ["mixHash"]
1700517014
});
1700617015
function formatBlock(value) {
1700717016
const result = _formatBlock(value);

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: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10598,11 +10598,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1059810598
result.blobs = tx.blobs;
1059910599
}
1060010600
if (tx.hash != null) {
10601-
assertArgument(result.isSigned(), "unsigned transaction cannot define hash", "tx", tx);
10601+
assertArgument(result.isSigned(), "unsigned transaction cannot define '.hash'", "tx", tx);
1060210602
assertArgument(result.hash === tx.hash, "hash mismatch", "tx", tx);
1060310603
}
1060410604
if (tx.from != null) {
10605-
assertArgument(result.isSigned(), "unsigned transaction cannot define from", "tx", tx);
10605+
assertArgument(result.isSigned(), "unsigned transaction cannot define '.from'", "tx", tx);
1060610606
assertArgument(result.from.toLowerCase() === (tx.from || "").toLowerCase(), "from mismatch", "tx", tx);
1060710607
}
1060810608
return result;
@@ -14119,6 +14119,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1411914119
* including this block.
1412014120
*/
1412114121
miner;
14122+
/**
14123+
* The latest RANDAO mix of the post beacon state of
14124+
* the previous block.
14125+
*/
14126+
prevRandao;
1412214127
/**
1412314128
* Any extra data the validator wished to include.
1412414129
*/
@@ -14159,6 +14164,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1415914164
blobGasUsed: block.blobGasUsed,
1416014165
excessBlobGas: block.excessBlobGas,
1416114166
miner: block.miner,
14167+
prevRandao: getValue(block.prevRandao),
1416214168
extraData: block.extraData,
1416314169
baseFeePerGas: getValue(block.baseFeePerGas),
1416414170
stateRoot: block.stateRoot,
@@ -14201,7 +14207,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1420114207
* Returns a JSON-friendly value.
1420214208
*/
1420314209
toJSON() {
14204-
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
14210+
const { baseFeePerGas, difficulty, extraData, gasLimit, gasUsed, hash, miner, prevRandao, nonce, number, parentHash, parentBeaconBlockRoot, stateRoot, receiptsRoot, timestamp, transactions } = this;
1420514211
return {
1420614212
_type: "Block",
1420714213
baseFeePerGas: toJson(baseFeePerGas),
@@ -14211,7 +14217,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1421114217
gasUsed: toJson(gasUsed),
1421214218
blobGasUsed: toJson(this.blobGasUsed),
1421314219
excessBlobGas: toJson(this.excessBlobGas),
14214-
hash, miner, nonce, number, parentHash, timestamp,
14220+
hash, miner, prevRandao, nonce, number, parentHash, timestamp,
1421514221
parentBeaconBlockRoot, stateRoot, receiptsRoot,
1421614222
transactions,
1421714223
};
@@ -17006,8 +17012,11 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1700617012
blobGasUsed: allowNull(getBigInt, null),
1700717013
excessBlobGas: allowNull(getBigInt, null),
1700817014
miner: allowNull(getAddress),
17015+
prevRandao: allowNull(formatHash, null),
1700917016
extraData: formatData,
1701017017
baseFeePerGas: allowNull(getBigInt)
17018+
}, {
17019+
prevRandao: ["mixHash"]
1701117020
});
1701217021
function formatBlock(value) {
1701317022
const result = _formatBlock(value);

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/providers/format.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/providers/format.js

Lines changed: 3 additions & 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)