Commit fe28aa22 authored by Mark Tyneway's avatar Mark Tyneway

lint: fix

Lints the `fault-detector`.

Not sure how this made it through CI.
parent 2b168bf8
......@@ -23,7 +23,9 @@ export const findOutputForIndex = async (
l2OutputIndex: index,
}
} catch (err) {
logger?.fatal('error when calling L2OuputOracle.getL2Output', { errors: err })
logger?.fatal('error when calling L2OuputOracle.getL2Output', {
errors: err,
})
throw new Error(`unable to find output for index ${index}`)
}
}
......
......@@ -6,7 +6,12 @@ import {
validators,
waitForProvider,
} from '@eth-optimism/common-ts'
import { BedrockOutputData, getChainId, sleep, toRpcHexString } from '@eth-optimism/core-utils'
import {
BedrockOutputData,
getChainId,
sleep,
toRpcHexString,
} from '@eth-optimism/core-utils'
import { config } from 'dotenv'
import {
CONTRACT_ADDRESSES,
......@@ -382,7 +387,7 @@ export class FaultDetector extends BaseServiceV2<Options, Metrics, State> {
new Date(
(ethers.BigNumber.from(outputBlock.timestamp).toNumber() +
this.state.faultProofWindow) *
1000
1000
),
'mmmm dS, yyyy, h:MM:ss TT'
),
......
......@@ -5,10 +5,7 @@ import { getContractFactory } from '@eth-optimism/contracts-bedrock'
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'
import { expect } from './setup'
import {
findOutputForIndex,
findFirstUnfinalizedStateBatchIndex,
} from '../src'
import { findOutputForIndex, findFirstUnfinalizedStateBatchIndex } from '../src'
describe('helpers', () => {
const deployConfig = {
......@@ -108,7 +105,7 @@ describe('helpers', () => {
await L2OutputOracle.proposeL2Output(
utils.formatBytes32String('outputRoot3'),
params._l2BlockNumber +
deployConfig.l2OutputOracleSubmissionInterval * 2,
deployConfig.l2OutputOracleSubmissionInterval * 2,
params._l1BlockHash,
params._l1BlockNumber
)
......@@ -150,7 +147,7 @@ describe('helpers', () => {
await L2OutputOracle.proposeL2Output(
params._outputRoot,
params._l2BlockNumber +
deployConfig.l2OutputOracleSubmissionInterval * 2,
deployConfig.l2OutputOracleSubmissionInterval * 2,
params._l1BlockHash,
params._l1BlockNumber
)
......@@ -192,7 +189,7 @@ describe('helpers', () => {
await L2OutputOracle.proposeL2Output(
params._outputRoot,
params._l2BlockNumber +
deployConfig.l2OutputOracleSubmissionInterval * 2,
deployConfig.l2OutputOracleSubmissionInterval * 2,
params._l1BlockHash,
params._l1BlockNumber
)
......
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