Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

Commit 02ce49d

Browse files
committed
chore: up snaps
1 parent e82713f commit 02ce49d

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

src/ox/e2e.test.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ test('behavior: default (secp256k1)', async () => {
7979
maxFeePerGas,
8080
maxPriorityFeePerGas,
8181
signature,
82+
transactionIndex,
8283
...rest
8384
} = response
8485

@@ -91,6 +92,7 @@ test('behavior: default (secp256k1)', async () => {
9192
expect(maxPriorityFeePerGas).toBeDefined()
9293
expect(nonce).toBeDefined()
9394
expect(signature).toBeDefined()
95+
expect(transactionIndex).toBeDefined()
9496
expect(rest).toMatchInlineSnapshot(`
9597
{
9698
"aaAuthorizationList": [],
@@ -107,7 +109,6 @@ test('behavior: default (secp256k1)', async () => {
107109
"gas": 100000n,
108110
"gasPrice": 20000000000n,
109111
"nonceKey": 0n,
110-
"transactionIndex": 1,
111112
"type": "aa",
112113
"validAfter": null,
113114
"validBefore": null,
@@ -125,6 +126,7 @@ test('behavior: default (secp256k1)', async () => {
125126
logs,
126127
logsBloom,
127128
transactionHash,
129+
transactionIndex,
128130
...rest
129131
} = receipt
130132

@@ -135,6 +137,7 @@ test('behavior: default (secp256k1)', async () => {
135137
expect(logs).toBeDefined()
136138
expect(logsBloom).toBeDefined()
137139
expect(transactionHash).toBe(receipt.transactionHash)
140+
expect(transactionIndex).toBeDefined()
138141
expect(rest).toMatchInlineSnapshot(`
139142
{
140143
"blobGasPrice": undefined,
@@ -145,7 +148,6 @@ test('behavior: default (secp256k1)', async () => {
145148
"gasUsed": 23600n,
146149
"status": "success",
147150
"to": "0x0000000000000000000000000000000000000000",
148-
"transactionIndex": 1,
149151
"type": "0x76",
150152
}
151153
`)
@@ -216,6 +218,7 @@ test('behavior: default (p256)', async () => {
216218
maxFeePerGas,
217219
maxPriorityFeePerGas,
218220
signature,
221+
transactionIndex,
219222
...rest
220223
} = response
221224

@@ -228,6 +231,7 @@ test('behavior: default (p256)', async () => {
228231
expect(maxFeePerGas).toBeDefined()
229232
expect(maxPriorityFeePerGas).toBeDefined()
230233
expect(signature).toBeDefined()
234+
expect(transactionIndex).toBeDefined()
231235
expect(rest).toMatchInlineSnapshot(`
232236
{
233237
"aaAuthorizationList": [],
@@ -244,7 +248,6 @@ test('behavior: default (p256)', async () => {
244248
"gas": 100000n,
245249
"gasPrice": 20000000000n,
246250
"nonceKey": 0n,
247-
"transactionIndex": 1,
248251
"type": "aa",
249252
"validAfter": null,
250253
"validBefore": null,
@@ -262,6 +265,7 @@ test('behavior: default (p256)', async () => {
262265
logs,
263266
logsBloom,
264267
transactionHash,
268+
transactionIndex,
265269
...rest
266270
} = receipt
267271

@@ -272,6 +276,7 @@ test('behavior: default (p256)', async () => {
272276
expect(logs).toBeDefined()
273277
expect(logsBloom).toBeDefined()
274278
expect(transactionHash).toBe(receipt.transactionHash)
279+
expect(transactionIndex).toBeDefined()
275280
expect(rest).toMatchInlineSnapshot(`
276281
{
277282
"blobGasPrice": undefined,
@@ -282,7 +287,6 @@ test('behavior: default (p256)', async () => {
282287
"gasUsed": 28600n,
283288
"status": "success",
284289
"to": "0x0000000000000000000000000000000000000000",
285-
"transactionIndex": 1,
286290
"type": "0x76",
287291
}
288292
`)
@@ -352,6 +356,7 @@ test('behavior: default (p256 - webcrypto)', async () => {
352356
maxFeePerGas,
353357
maxPriorityFeePerGas,
354358
signature,
359+
transactionIndex,
355360
...rest
356361
} = response as any
357362

@@ -364,6 +369,7 @@ test('behavior: default (p256 - webcrypto)', async () => {
364369
expect(maxFeePerGas).toBeDefined()
365370
expect(maxPriorityFeePerGas).toBeDefined()
366371
expect(signature).toBeDefined()
372+
expect(transactionIndex).toBeDefined()
367373
expect(rest).toMatchInlineSnapshot(`
368374
{
369375
"aaAuthorizationList": [],
@@ -380,7 +386,6 @@ test('behavior: default (p256 - webcrypto)', async () => {
380386
"gas": 100000n,
381387
"gasPrice": 20000000000n,
382388
"nonceKey": 0n,
383-
"transactionIndex": 1,
384389
"type": "aa",
385390
"validAfter": null,
386391
"validBefore": null,
@@ -398,6 +403,7 @@ test('behavior: default (p256 - webcrypto)', async () => {
398403
logs,
399404
logsBloom,
400405
transactionHash,
406+
transactionIndex,
401407
...rest
402408
} = receipt
403409

@@ -408,6 +414,7 @@ test('behavior: default (p256 - webcrypto)', async () => {
408414
expect(logs).toBeDefined()
409415
expect(logsBloom).toBeDefined()
410416
expect(transactionHash).toBe(receipt.transactionHash)
417+
expect(transactionIndex).toBeDefined()
411418
expect(rest).toMatchInlineSnapshot(`
412419
{
413420
"blobGasPrice": undefined,
@@ -418,7 +425,6 @@ test('behavior: default (p256 - webcrypto)', async () => {
418425
"gasUsed": 28600n,
419426
"status": "success",
420427
"to": "0x0000000000000000000000000000000000000000",
421-
"transactionIndex": 1,
422428
"type": "0x76",
423429
}
424430
`)
@@ -535,6 +541,7 @@ test('behavior: default (webauthn)', async () => {
535541
const {
536542
blockNumber,
537543
blockHash,
544+
cumulativeGasUsed,
538545
feePayer,
539546
feeToken: _,
540547
from,
@@ -546,6 +553,7 @@ test('behavior: default (webauthn)', async () => {
546553

547554
expect(blockNumber).toBeDefined()
548555
expect(blockHash).toBeDefined()
556+
expect(cumulativeGasUsed).toBeDefined()
549557
expect(feePayer).toBeDefined()
550558
expect(from).toBe(address)
551559
expect(logs).toBeDefined()
@@ -556,7 +564,6 @@ test('behavior: default (webauthn)', async () => {
556564
"blobGasPrice": undefined,
557565
"blobGasUsed": undefined,
558566
"contractAddress": null,
559-
"cumulativeGasUsed": 31208n,
560567
"effectiveGasPrice": 20000000000n,
561568
"gasUsed": 31208n,
562569
"status": "success",

src/viem/e2e.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ describe('sendTransaction', () => {
4545
maxPriorityFeePerGas,
4646
nonce,
4747
signature,
48+
transactionIndex,
4849
...transaction
4950
} = await client.getTransaction({ hash })
5051

@@ -59,6 +60,7 @@ describe('sendTransaction', () => {
5960
expect(maxPriorityFeePerGas).toBeDefined()
6061
expect(nonce).toBeDefined()
6162
expect(signature).toBeDefined()
63+
expect(transactionIndex).toBeDefined()
6264
expect(transaction).toMatchInlineSnapshot(`
6365
{
6466
"aaAuthorizationList": [],
@@ -77,7 +79,6 @@ describe('sendTransaction', () => {
7779
"maxFeePerBlobGas": undefined,
7880
"nonceKey": 0n,
7981
"to": null,
80-
"transactionIndex": 1,
8182
"type": "aa",
8283
"typeHex": "0x76",
8384
"v": undefined,
@@ -118,6 +119,7 @@ describe('sendTransaction', () => {
118119
maxPriorityFeePerGas,
119120
nonce,
120121
signature,
122+
transactionIndex,
121123
...transaction
122124
} = await client.getTransaction({ hash })
123125

@@ -133,6 +135,7 @@ describe('sendTransaction', () => {
133135
expect(maxPriorityFeePerGas).toBeDefined()
134136
expect(nonce).toBeDefined()
135137
expect(signature).toBeDefined()
138+
expect(transactionIndex).toBeDefined()
136139
expect(transaction).toMatchInlineSnapshot(`
137140
{
138141
"aaAuthorizationList": [],
@@ -144,7 +147,6 @@ describe('sendTransaction', () => {
144147
"maxFeePerBlobGas": undefined,
145148
"nonceKey": 0n,
146149
"to": null,
147-
"transactionIndex": 1,
148150
"type": "aa",
149151
"typeHex": "0x76",
150152
"v": undefined,

0 commit comments

Comments
 (0)