We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ff353 commit 384436eCopy full SHA for 384436e
packages/bridging/src/providers/near-intents/util.ts
@@ -48,7 +48,9 @@ export const getTokenByAddressAndChainId = (
48
return tokens.find((token) => {
49
const chainId = NEAR_INTENTS_BLOCKCHAIN_CHAIN_IDS[token.blockchain as NearBlockchainKey]
50
if (!chainId) return false
51
- if (targetTokenAddress.toLowerCase() === ETH_ADDRESS.toLowerCase()) return chainId === targetTokenChainId
+ if (targetTokenAddress.toLowerCase() === ETH_ADDRESS.toLowerCase()) {
52
+ return chainId === targetTokenChainId && !token.contractAddress
53
+ }
54
const tokenAddress = token.contractAddress || ETH_ADDRESS
55
return tokenAddress?.toLowerCase() === targetTokenAddress.toLowerCase() && chainId === targetTokenChainId
56
})
0 commit comments