Skip to content

Commit d7e9b6c

Browse files
committed
chore: remove unused function param
1 parent 76b76f0 commit d7e9b6c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/cacheTradablePairs.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Mento } from '../src/mento'
99
import fs from 'fs'
1010
import path from 'path'
1111

12-
async function getTradablePairsForNetwork(chainId: number, rpcUrl: string) {
12+
async function getTradablePairsForNetwork(rpcUrl: string) {
1313
const provider = new providers.JsonRpcProvider(rpcUrl)
1414
const mento = await Mento.create(provider)
1515
return await mento.getTradablePairs(true)
@@ -22,10 +22,7 @@ async function main() {
2222
for (const [chainId, rpcUrl] of Object.entries(rpcUrls)) {
2323
console.log(`Fetching pairs for chain ${chainId}...`)
2424
try {
25-
results[Number(chainId)] = await getTradablePairsForNetwork(
26-
Number(chainId),
27-
rpcUrl
28-
)
25+
results[Number(chainId)] = await getTradablePairsForNetwork(rpcUrl)
2926
} catch (e) {
3027
console.error(`Error fetching pairs for chain ${chainId}:`, e)
3128
}

0 commit comments

Comments
 (0)