Skip to content

Commit

Permalink
metaport#193 Fix wrapped tokens lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Oct 23, 2023
1 parent 7f7cfbc commit 0ea5d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/metaport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function createWrappedTokensMap(
): TokenDataTypesMap {
const wrappedTokens: TokenDataTypesMap = getEmptyTokenDataMap()
const tokenType = TokenType.erc20
if (!chainName1) return wrappedTokens
if (!chainName1 || !config.connections[chainName1][tokenType]) return wrappedTokens
Object.keys(config.connections[chainName1][tokenType]).forEach((tokenKeyname) => {
const token = config.connections[chainName1][tokenType][tokenKeyname]
const wrapperAddress = findFirstWrapperAddress(token)
Expand Down

0 comments on commit 0ea5d4e

Please sign in to comment.