Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Cory authored and Will Cory committed Jul 20, 2023
1 parent 7dd9ac6 commit 98276c8
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions packages/fee-estimation/src/estimateFees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ type BlockOptions = {
blockTag?: BlockTag
}

const knownChains = [chains.optimism.id, chains.goerli.id, chains.base, chains.baseGoerli.id, chains.zora, chains.zoraTestnet]
const knownChains = [
chains.optimism.id,
chains.goerli.id,
chains.base,
chains.baseGoerli.id,
chains.zora,
chains.zoraTestnet,
]

/**
* ClientOptions type
Expand All @@ -51,15 +58,15 @@ const knownChains = [chains.optimism.id, chains.goerli.id, chains.base, chains.b
type ClientOptions =
// for known chains like base don't require an rpcUrl
| {
chainId: typeof knownChains[number]
rpcUrl?: string
nativeCurrency?: chains.Chain['nativeCurrency']
}
chainId: typeof knownChains[number]
rpcUrl?: string
nativeCurrency?: chains.Chain['nativeCurrency']
}
| {
chainId: number
rpcUrl: string
nativeCurrency?: chains.Chain['nativeCurrency']
}
chainId: number
rpcUrl: string
nativeCurrency?: chains.Chain['nativeCurrency']
}
| PublicClient

/**
Expand Down

0 comments on commit 98276c8

Please sign in to comment.