fix: prevent marking x-chain wrapped as native (#4921)
This commit is contained in:
parent
f6b08e8ed1
commit
4f74267144
@ -97,5 +97,10 @@ export function unwrapToken<T extends { address: string | null } | null>(chainId
|
||||
if (address !== nativeAddress) return token
|
||||
|
||||
const nativeToken = nativeOnChain(chainId)
|
||||
return { ...token, ...nativeToken, address: NATIVE_CHAIN_ID }
|
||||
return {
|
||||
...token,
|
||||
...nativeToken,
|
||||
address: NATIVE_CHAIN_ID,
|
||||
extensions: undefined, // prevents marking cross-chain wrapped tokens as native
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user