Skip to content

Commit

Permalink
fix bad merge from network -> chainId work (#6074)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat authored Sep 4, 2024
1 parent 2a9b11d commit 56c8831
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/walletConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 56c8831

Please sign in to comment.