Skip to content

Commit 3e2e304

Browse files
committed
test: fix anvil methods typing
1 parent 565da71 commit 3e2e304

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/integrationTestHelpers/anvilHarnessHelpers.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export async function setBalanceOnL1(params: {
265265
}) {
266266
const publicClient = createPublicClient({ transport: http(params.rpcUrl) });
267267
await publicClient.request({
268-
method: 'anvil_setBalance',
268+
method: 'anvil_setBalance' as never,
269269
params: [params.address, `0x${params.balance.toString(16)}`],
270270
});
271271
}
@@ -275,12 +275,12 @@ export async function refreshForkTime(params: { rpcUrl: string }) {
275275
const now = Math.floor(Date.now() / 1000);
276276

277277
await publicClient.request({
278-
method: 'evm_setNextBlockTimestamp',
279-
params: [now],
278+
method: 'evm_setNextBlockTimestamp' as never,
279+
params: [now] as never,
280280
});
281281
await publicClient.request({
282-
method: 'evm_mine',
283-
params: [],
282+
method: 'evm_mine' as never,
283+
params: [] as never,
284284
});
285285
}
286286

0 commit comments

Comments
 (0)