Skip to content

Commit 3ec8dbe

Browse files
committed
chore: revert ora imports to normal imports
1 parent 9ef77ce commit 3ec8dbe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

scripts/shared/tokenUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ethers } from 'ethers'
2+
import ora from 'ora'
23
import { getSymbolFromTokenAddress as sdkGetSymbol } from '../../src/utils'
34
import { batchProcess } from './batchProcessor'
45

@@ -55,7 +56,6 @@ export async function prefetchTokenSymbols(
5556
if (uniqueTokenCount === 0) {
5657
return
5758
}
58-
const ora = (await import('ora')).default;
5959

6060
let spinner: ReturnType<typeof ora> | undefined
6161
if (showSpinner) {
@@ -116,7 +116,6 @@ export async function prefetchTokenSymbolsFromExchanges(
116116
exchanges: Array<{ providerAddr: string; id: string }>,
117117
provider: ethers.providers.Provider
118118
): Promise<void> {
119-
const ora = (await import('ora')).default;
120119
const spinner = ora({
121120
text: 'Pre-fetching token symbols...',
122121
color: 'cyan',

scripts/tradablePairs/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import chalk from 'chalk'
12
import { providers } from 'ethers'
3+
import ora from 'ora'
24
import { Mento } from '../../src/mento'
35
import { parseCommandLineArgs } from './utils/parseCommandLineArgs'
4-
import chalk from 'chalk'
56

67

78
async function main() {
8-
const ora = (await import('ora')).default;
99
// Parse command line arguments
1010
const args = parseCommandLineArgs()
1111

0 commit comments

Comments
 (0)