Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Apr 21, 2024
1 parent e62b2fb commit 9797781
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/actions/wallet/sendTransaction.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { describe, expect, test, vi } from 'vitest'

import { accounts, localHttpUrl } from '~test/src/constants.js'
import { accounts, forkBlockNumber, localHttpUrl } from '~test/src/constants.js'
import { blobData, kzg } from '~test/src/kzg.js'
import {
anvilChain,
holeskyClient,
publicClient,
setBlockNumber,
testClient,
walletClient,
walletClientWithAccount,
Expand Down Expand Up @@ -120,6 +121,8 @@ test('sends transaction (w/ formatter)', async () => {
test('sends transaction (w/ serializer)', async () => {
await setup()

await setBlockNumber(forkBlockNumber)

const serializer = vi.fn(
(
txn: TransactionSerializable & {
Expand Down Expand Up @@ -173,7 +176,7 @@ test('sends transaction (w/ serializer)', async () => {
).rejects.toThrowError()

expect(serializer).toReturnWith(
'0x08f301820179843b9aca00850306dc4200825208809470997970c51812dc3a010c7d01b50e0d17dc79c8880de0b6b3a764000080c0',
'0x08f301820177843b9aca008503cda9ac11825208809470997970c51812dc3a010c7d01b50e0d17dc79c8880de0b6b3a764000080c0',
)
})

Expand Down

0 comments on commit 9797781

Please sign in to comment.