Skip to content

Commit c504ff3

Browse files
committed
chore: up
1 parent e82f584 commit c504ff3

2 files changed

Lines changed: 4 additions & 37 deletions

File tree

src/linea/chainConfig.test.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { createClient } from '../clients/createClient.js'
55
import { http } from '../clients/transports/http.js'
66
import { parseEther } from '../utils/index.js'
77
import * as estimateGas from './actions/estimateGas.js'
8-
import * as chainConfig from './chainConfig.js'
98
import { lineaSepolia } from './chains.js'
109

1110
const client = createClient({
@@ -32,36 +31,4 @@ describe('estimateFeesPerGas', () => {
3231
expect(maxFeePerGas).toBeDefined()
3332
expect(maxPriorityFeePerGas).toBeDefined()
3433
})
35-
36-
test('behavior: `estimateFeesPerGas` returns null', async () => {
37-
vi.spyOn(estimateGas, 'estimateGas').mockRejectedValueOnce(new Error())
38-
const spy = vi.spyOn(chainConfig.chainConfig.fees, 'estimateFeesPerGas')
39-
const { maxFeePerGas, maxPriorityFeePerGas } =
40-
await internal_estimateFeesPerGas(client, {
41-
request: {
42-
account: address.burn,
43-
to: address.burn,
44-
value: parseEther('0.0001'),
45-
},
46-
})
47-
expect(spy).toHaveReturnedWith(null)
48-
expect(maxFeePerGas).toBeDefined()
49-
expect(maxPriorityFeePerGas).toBeDefined()
50-
})
51-
52-
test('behavior: `maxPriorityFeePerGas` returns null', async () => {
53-
vi.spyOn(estimateGas, 'estimateGas').mockRejectedValue(new Error())
54-
const spy = vi.spyOn(chainConfig.chainConfig.fees, 'maxPriorityFeePerGas')
55-
const { maxFeePerGas, maxPriorityFeePerGas } =
56-
await internal_estimateFeesPerGas(client, {
57-
request: {
58-
account: address.burn,
59-
to: address.burn,
60-
value: parseEther('0.0001'),
61-
},
62-
})
63-
expect(spy).toHaveReturnedWith(null)
64-
expect(maxFeePerGas).toBeDefined()
65-
expect(maxPriorityFeePerGas).toBeDefined()
66-
})
6734
})

src/op-stack/formatters.test-d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { optimism } from '../chains/index.js'
77
import { createPublicClient } from '../clients/createPublicClient.js'
88
import { http } from '../clients/transports/http.js'
99
import type { Hash } from '../types/misc.js'
10-
import { formatters } from './formatters.js'
10+
import type { formatters } from './formatters.js'
1111
import type { OpStackRpcBlock } from './types/block.js'
1212

1313
describe('block', () => {
14-
expectTypeOf(formatters.block.format)
15-
.parameter(0)
16-
.toEqualTypeOf<OpStackRpcBlock>()
14+
expectTypeOf<
15+
Parameters<typeof formatters.block.format>[0]
16+
>().toEqualTypeOf<OpStackRpcBlock>()
1717
})
1818

1919
describe('transaction', () => {

0 commit comments

Comments
 (0)