Skip to content

Commit 77f5dfc

Browse files
committed
chore: revert generated dist/lib artifacts
1 parent 7a682ea commit 77f5dfc

40 files changed

Lines changed: 58 additions & 140 deletions

dist/ethers.js

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15197,8 +15197,6 @@ class TransactionResponse {
1519715197
*
1519815198
* When sending a transaction, this must be equal to the number of
1519915199
* transactions ever sent by [[from]].
15200-
*
15201-
* May be ``null`` if the node did not return a valid nonce.
1520215200
*/
1520315201
nonce;
1520415202
/**
@@ -15279,7 +15277,7 @@ class TransactionResponse {
1527915277
this.from = tx.from;
1528015278
this.to = tx.to || null;
1528115279
this.gasLimit = tx.gasLimit;
15282-
this.nonce = tx.nonce ?? null;
15280+
this.nonce = tx.nonce;
1528315281
this.data = tx.data;
1528415282
this.value = tx.value;
1528515283
this.gasPrice = tx.gasPrice;
@@ -15388,7 +15386,7 @@ class TransactionResponse {
1538815386
});
1538915387
// No transaction or our nonce has not been mined yet; but we
1539015388
// can start scanning later when we do start
15391-
if (this.nonce != null && nonce < this.nonce) {
15389+
if (nonce < this.nonce) {
1539215390
startBlock = blockNumber;
1539315391
return;
1539415392
}
@@ -15427,7 +15425,7 @@ class TransactionResponse {
1542715425
// Search for the transaction that replaced us
1542815426
for (let i = 0; i < block.length; i++) {
1542915427
const tx = await block.getTransaction(i);
15430-
if (this.nonce != null && tx.from === this.from && tx.nonce === this.nonce) {
15428+
if (tx.from === this.from && tx.nonce === this.nonce) {
1543115429
// Get the receipt
1543215430
if (stopScanning) {
1543315431
return null;
@@ -16851,9 +16849,7 @@ class ContractFactory {
1685116849
operation: "sendTransaction"
1685216850
});
1685316851
const sentTx = await this.runner.sendTransaction(tx);
16854-
const deployNonce = sentTx.nonce;
16855-
assertArgument(deployNonce != null, "cannot compute CREATE address without transaction nonce; try again after the RPC returns a full transaction payload", "sentTx.nonce", sentTx.nonce);
16856-
const address = getCreateAddress({ from: sentTx.from, nonce: deployNonce });
16852+
const address = getCreateAddress(sentTx);
1685716853
return new BaseContract(address, this.interface, this.runner, sentTx);
1685816854
}
1685916855
/**
@@ -17430,20 +17426,6 @@ function formatHash(value) {
1743017426
assertArgument(isHexString(value, 32), "invalid hash", "value", value);
1743117427
return value;
1743217428
}
17433-
// Some nodes omit nonce or return non-numeric placeholder strings (e.g.
17434-
// "undefined"); return null instead of throwing when parsing the response.
17435-
function formatTransactionNonce(value) {
17436-
if (value == null) {
17437-
return null;
17438-
}
17439-
if (typeof (value) === "string") {
17440-
const t = value.trim();
17441-
if (t === "" || t === "undefined" || t === "null") {
17442-
return null;
17443-
}
17444-
}
17445-
return getNumber(value);
17446-
}
1744717429
const _formatLog = object({
1744817430
address: getAddress,
1744917431
blockHash: formatHash,
@@ -17586,7 +17568,7 @@ function formatTransactionResponse(value) {
1758617568
gasLimit: getBigInt,
1758717569
to: allowNull(getAddress, null),
1758817570
value: getBigInt,
17589-
nonce: formatTransactionNonce,
17571+
nonce: getNumber,
1759017572
data: formatData,
1759117573
creates: allowNull(getAddress, null),
1759217574
chainId: allowNull(getBigInt, null)
@@ -17596,7 +17578,7 @@ function formatTransactionResponse(value) {
1759617578
index: ["transactionIndex"]
1759717579
})(value);
1759817580
// If to and creates are empty, populate the creates from the value
17599-
if (result.to == null && result.creates == null && result.nonce != null) {
17581+
if (result.to == null && result.creates == null) {
1760017582
result.creates = getCreateAddress(result);
1760117583
}
1760217584
// @TODO: Check fee data
@@ -21972,7 +21954,7 @@ class EtherscanProvider extends AbstractProvider {
2197221954
continue;
2197321955
}
2197421956
// Quantity-types require no leading zero, unless 0
21975-
if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGas: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) {
21957+
if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) {
2197621958
value = toQuantity(value);
2197721959
}
2197821960
else if (key === "accessList") {

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: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15203,8 +15203,6 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1520315203
*
1520415204
* When sending a transaction, this must be equal to the number of
1520515205
* transactions ever sent by [[from]].
15206-
*
15207-
* May be ``null`` if the node did not return a valid nonce.
1520815206
*/
1520915207
nonce;
1521015208
/**
@@ -15285,7 +15283,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1528515283
this.from = tx.from;
1528615284
this.to = tx.to || null;
1528715285
this.gasLimit = tx.gasLimit;
15288-
this.nonce = tx.nonce ?? null;
15286+
this.nonce = tx.nonce;
1528915287
this.data = tx.data;
1529015288
this.value = tx.value;
1529115289
this.gasPrice = tx.gasPrice;
@@ -15394,7 +15392,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1539415392
});
1539515393
// No transaction or our nonce has not been mined yet; but we
1539615394
// can start scanning later when we do start
15397-
if (this.nonce != null && nonce < this.nonce) {
15395+
if (nonce < this.nonce) {
1539815396
startBlock = blockNumber;
1539915397
return;
1540015398
}
@@ -15433,7 +15431,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1543315431
// Search for the transaction that replaced us
1543415432
for (let i = 0; i < block.length; i++) {
1543515433
const tx = await block.getTransaction(i);
15436-
if (this.nonce != null && tx.from === this.from && tx.nonce === this.nonce) {
15434+
if (tx.from === this.from && tx.nonce === this.nonce) {
1543715435
// Get the receipt
1543815436
if (stopScanning) {
1543915437
return null;
@@ -16857,9 +16855,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1685716855
operation: "sendTransaction"
1685816856
});
1685916857
const sentTx = await this.runner.sendTransaction(tx);
16860-
const deployNonce = sentTx.nonce;
16861-
assertArgument(deployNonce != null, "cannot compute CREATE address without transaction nonce; try again after the RPC returns a full transaction payload", "sentTx.nonce", sentTx.nonce);
16862-
const address = getCreateAddress({ from: sentTx.from, nonce: deployNonce });
16858+
const address = getCreateAddress(sentTx);
1686316859
return new BaseContract(address, this.interface, this.runner, sentTx);
1686416860
}
1686516861
/**
@@ -17436,20 +17432,6 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1743617432
assertArgument(isHexString(value, 32), "invalid hash", "value", value);
1743717433
return value;
1743817434
}
17439-
// Some nodes omit nonce or return non-numeric placeholder strings (e.g.
17440-
// "undefined"); return null instead of throwing when parsing the response.
17441-
function formatTransactionNonce(value) {
17442-
if (value == null) {
17443-
return null;
17444-
}
17445-
if (typeof (value) === "string") {
17446-
const t = value.trim();
17447-
if (t === "" || t === "undefined" || t === "null") {
17448-
return null;
17449-
}
17450-
}
17451-
return getNumber(value);
17452-
}
1745317435
const _formatLog = object({
1745417436
address: getAddress,
1745517437
blockHash: formatHash,
@@ -17592,7 +17574,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1759217574
gasLimit: getBigInt,
1759317575
to: allowNull(getAddress, null),
1759417576
value: getBigInt,
17595-
nonce: formatTransactionNonce,
17577+
nonce: getNumber,
1759617578
data: formatData,
1759717579
creates: allowNull(getAddress, null),
1759817580
chainId: allowNull(getBigInt, null)
@@ -17602,7 +17584,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
1760217584
index: ["transactionIndex"]
1760317585
})(value);
1760417586
// If to and creates are empty, populate the creates from the value
17605-
if (result.to == null && result.creates == null && result.nonce != null) {
17587+
if (result.to == null && result.creates == null) {
1760617588
result.creates = getCreateAddress(result);
1760717589
}
1760817590
// @TODO: Check fee data
@@ -21978,7 +21960,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
2197821960
continue;
2197921961
}
2198021962
// Quantity-types require no leading zero, unless 0
21981-
if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGas: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) {
21963+
if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) {
2198221964
value = toQuantity(value);
2198321965
}
2198421966
else if (key === "accessList") {

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/contract/factory.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/contract/factory.js

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

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