From 56c883175be028477a903a51cbcb44081a45a479 Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Wed, 4 Sep 2024 12:36:41 -0400 Subject: [PATCH] fix bad merge from network -> chainId work (#6074) --- src/walletConnect/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/walletConnect/index.tsx b/src/walletConnect/index.tsx index 0faf3a4ec5e..5a45f567b37 100644 --- a/src/walletConnect/index.tsx +++ b/src/walletConnect/index.tsx @@ -718,12 +718,10 @@ export async function onSessionRequest(event: SignClientTypes.EventArguments['se logger.debug(`[walletConnect]: handling request`, {}, logger.DebugContext.walletconnect); - const dappNetwork = ethereumUtils.getNetworkFromChainId(chainId); - const displayDetails = await getRequestDisplayDetails(event.params.request, nativeCurrency, dappNetwork); + const displayDetails = await getRequestDisplayDetails(event.params.request, nativeCurrency, chainId); const peerMeta = session.peer.metadata; const metadata = await fetchDappMetadata({ url: peerMeta.url, status: true }); - const dappName = metadata?.appName || peerMeta.name || lang.t(lang.l.walletconnect.unknown_url); const dappImage = metadata?.appLogo || peerMeta?.icons?.[0];