Commit b6a91ae6 authored by Will Cory's avatar Will Cory

chore: Inline the opts

parent aee890af
...@@ -147,11 +147,10 @@ export class FaultDetector extends BaseServiceV2<Options, Metrics, State> { ...@@ -147,11 +147,10 @@ export class FaultDetector extends BaseServiceV2<Options, Metrics, State> {
contracts.OptimismPortal = portalAddress contracts.OptimismPortal = portalAddress
this.logger.info('fetching L2OutputOracle contract from OptimismPortal') this.logger.info('fetching L2OutputOracle contract from OptimismPortal')
const opts = { const portalContract = getOEContract('OptimismPortal', l2ChainId, {
address: portalAddress, address: portalAddress,
signerOrProvider: this.options.l1RpcProvider, signerOrProvider: this.options.l1RpcProvider,
} })
const portalContract = getOEContract('OptimismPortal', l2ChainId, opts)
contracts.L2OutputOracle = await portalContract.L2_ORACLE() contracts.L2OutputOracle = await portalContract.L2_ORACLE()
} }
......
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