From 4f74267144d95e6fca3da0cb3962b57637cac914 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Thu, 13 Oct 2022 11:34:27 -0700 Subject: [PATCH] fix: prevent marking x-chain wrapped as native (#4921) --- src/graphql/data/util.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/graphql/data/util.ts b/src/graphql/data/util.ts index 8267de2bda..c8b0203539 100644 --- a/src/graphql/data/util.ts +++ b/src/graphql/data/util.ts @@ -97,5 +97,10 @@ export function unwrapToken(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 + } }