Skip to content

Commit aa6872f

Browse files
committed
fix: ts build issue
1 parent 5b0faf3 commit aa6872f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/constants/tokens.11142220.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is auto-generated. Do not edit manually.
2-
// Generated on 2025-10-02T13:48:02.933Z
2+
// Generated on 2025-10-02T13:54:45.876Z
33

44
import { Token } from '../mento'
55

src/constants/tokens.42220.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is auto-generated. Do not edit manually.
2-
// Generated on 2025-10-02T13:47:45.185Z
2+
// Generated on 2025-10-02T13:54:27.948Z
33

44
import { Token } from '../mento'
55

src/constants/tokens.44787.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is auto-generated. Do not edit manually.
2-
// Generated on 2025-10-02T13:47:54.204Z
2+
// Generated on 2025-10-02T13:54:36.998Z
33

44
import { Token } from '../mento'
55

src/constants/tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is auto-generated. Do not edit manually.
2-
// Generated on 2025-10-02T13:48:02.934Z
2+
// Generated on 2025-10-02T13:54:45.878Z
33

44
import { Token } from '../mento'
55

src/routeFetching.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Contract, providers } from 'ethers'
1313
import { IMentoRouter__factory } from 'mento-router-ts'
1414
import { buildRouteDisplay } from '../scripts/quotes/spread'
1515
import { Mento, TradablePair } from './mento'
16-
import { findTokenBySymbol } from './utils'
16+
import { findTokenBySymbolInTradablePairs } from './utils'
1717

1818
// Simplified mock setup - only what's actually needed
1919
jest.mock('@mento-protocol/mento-core-ts', () => ({
@@ -128,7 +128,7 @@ describe('Route Fetching Logic', () => {
128128

129129
for (const [symbol, expectedAddress] of expectedTokens) {
130130
const displaySymbol = symbol === 'USDT' ? 'USD₮' : symbol
131-
const foundAddress = findTokenBySymbol(allPairs, displaySymbol)
131+
const foundAddress = findTokenBySymbolInTradablePairs(allPairs, displaySymbol)
132132

133133
expect(foundAddress).toBe(expectedAddress)
134134
}
@@ -195,7 +195,7 @@ describe('Route Fetching Logic', () => {
195195
describe('Error Handling', () => {
196196
it('should handle non-existent token addresses', () => {
197197
const fakeAddress = '0x1234567890123456789012345678901234567890'
198-
const result = findTokenBySymbol(allPairs, fakeAddress)
198+
const result = findTokenBySymbolInTradablePairs(allPairs, fakeAddress)
199199
expect(result).toBeNull()
200200
})
201201
})

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export async function increaseAllowance(
130130
* @param symbol the token symbol to find (case-insensitive)
131131
* @returns the token address if found, null otherwise
132132
*/
133-
export function findTokenBySymbol(
133+
export function findTokenBySymbolInTradablePairs(
134134
pairs: readonly TradablePair[],
135135
symbol: string
136136
): string | null {

0 commit comments

Comments
 (0)