Commit 48cf1e31 authored by Annie Ke's avatar Annie Ke Committed by GitHub

fix: run yarn lint:fix (#534)

* fix: run yarn lint:fix
parent 8a2c24a9
import { ethers } from 'hardhat' import { ethers } from 'hardhat'
import { injectL2Context } from '@eth-optimism/core-utils' import { injectL2Context } from '@eth-optimism/core-utils'
import { expect } from 'chai' import { expect } from 'chai'
import { sleep, l2Provider, l1Provider, getAddressManager } from './shared/utils' import {
sleep,
l2Provider,
l1Provider,
getAddressManager,
} from './shared/utils'
import { OptimismEnv } from './shared/env' import { OptimismEnv } from './shared/env'
import { getContractFactory } from '@eth-optimism/contracts' import { getContractFactory } from '@eth-optimism/contracts'
import { Contract, ContractFactory, Wallet, BigNumber } from 'ethers' import { Contract, ContractFactory, Wallet, BigNumber } from 'ethers'
...@@ -41,12 +46,12 @@ describe('OVM Context: Layer 2 EVM Context', () => { ...@@ -41,12 +46,12 @@ describe('OVM Context: Layer 2 EVM Context', () => {
'OVM_CanonicalTransactionChain' 'OVM_CanonicalTransactionChain'
) )
const CanonicalTransactionChainFactory = getContractFactory( const CanonicalTransactionChainFactory = getContractFactory(
'OVM_CanonicalTransactionChain', 'OVM_CanonicalTransactionChain'
) )
CanonicalTransactionChain = CanonicalTransactionChainFactory CanonicalTransactionChain = CanonicalTransactionChainFactory.connect(
.connect(l1Wallet) l1Wallet
.attach(ctcAddress) ).attach(ctcAddress)
const OVMMulticallFactory = await ethers.getContractFactory( const OVMMulticallFactory = await ethers.getContractFactory(
'OVMMulticall', 'OVMMulticall',
......
...@@ -7,7 +7,7 @@ import { OptimismEnv } from './shared/env' ...@@ -7,7 +7,7 @@ import { OptimismEnv } from './shared/env'
chai.use(chaiAsPromised) chai.use(chaiAsPromised)
describe('Basic RPC tests', () => { describe('Basic RPC tests', () => {
let env: OptimismEnv; let env: OptimismEnv
const DEFAULT_TRANSACTION = { const DEFAULT_TRANSACTION = {
to: '0x' + '1234'.repeat(10), to: '0x' + '1234'.repeat(10),
......
...@@ -6,7 +6,7 @@ import { ...@@ -6,7 +6,7 @@ import {
fromHexString, fromHexString,
toHexString, toHexString,
TxType, TxType,
EventArgsSequencerBatchAppended EventArgsSequencerBatchAppended,
} from '@eth-optimism/core-utils' } from '@eth-optimism/core-utils'
/* Imports: Internal */ /* Imports: Internal */
......
import {EventArgsTransactionEnqueued} from '@eth-optimism/core-utils' import { EventArgsTransactionEnqueued } from '@eth-optimism/core-utils'
/* Imports: Internal */ /* Imports: Internal */
import { BigNumber } from 'ethers' import { BigNumber } from 'ethers'
import { import { EnqueueEntry, EventHandlerSet } from '../../../types'
EnqueueEntry,
EventHandlerSet,
} from '../../../types'
export const handleEventsTransactionEnqueued: EventHandlerSet< export const handleEventsTransactionEnqueued: EventHandlerSet<
EventArgsTransactionEnqueued, EventArgsTransactionEnqueued,
......
/* Imports: External */ /* Imports: External */
import { fromHexString, BaseService, EventArgsAddressSet } from '@eth-optimism/core-utils' import {
fromHexString,
BaseService,
EventArgsAddressSet,
} from '@eth-optimism/core-utils'
import { JsonRpcProvider } from '@ethersproject/providers' import { JsonRpcProvider } from '@ethersproject/providers'
import { LevelUp } from 'levelup' import { LevelUp } from 'levelup'
...@@ -12,10 +16,7 @@ import { ...@@ -12,10 +16,7 @@ import {
loadContract, loadContract,
validators, validators,
} from '../../utils' } from '../../utils'
import { import { TypedEthersEvent, EventHandlerSet } from '../../types'
TypedEthersEvent,
EventHandlerSet,
} from '../../types'
import { handleEventsTransactionEnqueued } from './handlers/transaction-enqueued' import { handleEventsTransactionEnqueued } from './handlers/transaction-enqueued'
import { handleEventsSequencerBatchAppended } from './handlers/sequencer-batch-appended' import { handleEventsSequencerBatchAppended } from './handlers/sequencer-batch-appended'
import { handleEventsStateBatchAppended } from './handlers/state-batch-appended' import { handleEventsStateBatchAppended } from './handlers/state-batch-appended'
......
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