Skip to content

Commit

Permalink
fix bad merge from network -> chainId work
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Sep 4, 2024
1 parent 2a9b11d commit 6c28e7e
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 6c28e7e

Please sign in to comment.