Skip to content

Commit

Permalink
use live client for getProveArgsForWithdrawal
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsoncusack committed Aug 29, 2023
1 parent 6ac742c commit 5de18bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/actions/public/getProveArgsForWithdrawal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getWithdrawalMessages } from './getWithdrawalMessages'
import { base } from '@roninjin10/rollup-chains'
import { getOutputForL2Block } from './getOutputForL2Block'
import { getProveArgsForWithdrawal } from './getProveArgsForWithdrawal'
import { publicClient } from '../../_test/utils'
import { mainnet } from '@wagmi/chains'

// from OP SDK getMessageBedrockOutput
const expectedResult = {
Expand Down Expand Up @@ -38,7 +38,13 @@ test('correctly generates args', async () => {
hash: '0xd0eb2a59f3cc4c61b01c350e71e1804ad6bd776dc9abc1bdb5e2e40695ab2628',
})

const output = await getOutputForL2Block(publicClient, {
// TODO: using publicClient was giving issues in CI, need to solve
const l1Client = createPublicClient({
chain: mainnet,
transport: http(),
})

const output = await getOutputForL2Block(l1Client, {
blockNumber: withdrawalMessages.blockNumber,
rollup: base,
})
Expand Down

0 comments on commit 5de18bb

Please sign in to comment.