Skip to content

Commit

Permalink
🚨 Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
William Cory authored and William Cory committed Sep 29, 2024
1 parent 18c889c commit 5e3cec8
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions packages/actions/src/eth/ethGetLogsHandler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,27 +228,29 @@ describe(ethGetLogsHandler.name, () => {
})
})

it('should work for past blocks in forked mode', async () => {
const client = createTevmNode({
fork: {
transport: transports.optimism,
blockTag: 125985200n,
},
})
const logs = await ethGetLogsHandler(client)({
filterParams: {
address: '0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1',
fromBlock: 125985142n,
toBlock: 125985142n,
topics: [
'0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
'0x0000000000000000000000007f26A7572E8B877654eeDcBc4E573657619FA3CE',
'0x0000000000000000000000007B46fFbC976db2F94C3B3CDD9EbBe4ab50E3d77d',
],
},
})
expect(logs).toHaveLength(1)
expect(logs).toMatchInlineSnapshot(`
it(
'should work for past blocks in forked mode',
async () => {
const client = createTevmNode({
fork: {
transport: transports.optimism,
blockTag: 125985200n,
},
})
const logs = await ethGetLogsHandler(client)({
filterParams: {
address: '0xdC6fF44d5d932Cbd77B52E5612Ba0529DC6226F1',
fromBlock: 125985142n,
toBlock: 125985142n,
topics: [
'0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
'0x0000000000000000000000007f26A7572E8B877654eeDcBc4E573657619FA3CE',
'0x0000000000000000000000007B46fFbC976db2F94C3B3CDD9EbBe4ab50E3d77d',
],
},
})
expect(logs).toHaveLength(1)
expect(logs).toMatchInlineSnapshot(`
[
{
"address": "0xdc6ff44d5d932cbd77b52e5612ba0529dc6226f1",
Expand Down

0 comments on commit 5e3cec8

Please sign in to comment.