Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bad merge from network -> chainId work #6074

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading