Commit f90ff309 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #3129 from ethereum-optimism/fix/itests-modularize

integration-tests: modularize
parents d1702add d97df13a
---
'@eth-optimism/integration-tests': patch
---
Modularize the itests away from depending on api of messenger
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import { providers } from 'ethers' import { providers } from 'ethers'
import { applyL1ToL2Alias } from '@eth-optimism/core-utils' import { applyL1ToL2Alias } from '@eth-optimism/core-utils'
import { asL2Provider } from '@eth-optimism/sdk' import { asL2Provider } from '@eth-optimism/sdk'
import { getContractInterface } from '@eth-optimism/contracts'
/* Imports: External */ /* Imports: External */
import { expect } from './shared/setup' import { expect } from './shared/setup'
...@@ -47,11 +48,9 @@ describe('Queue Ingestion', () => { ...@@ -47,11 +48,9 @@ describe('Queue Ingestion', () => {
receipt.remoteTx.hash receipt.remoteTx.hash
)) as any )) as any
const params = const params = getContractInterface(
env.messenger.contracts.l2.L2CrossDomainMessenger.interface.decodeFunctionData( 'L2CrossDomainMessenger'
'relayMessage', ).decodeFunctionData('relayMessage', l2Tx.data)
l2Tx.data
)
expect(params._sender.toLowerCase()).to.equal( expect(params._sender.toLowerCase()).to.equal(
env.l1Wallet.address.toLowerCase() env.l1Wallet.address.toLowerCase()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment