Skip to content

Commit

Permalink
use origin as url (#5710)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylarbarrera authored May 13, 2024
1 parent f56e50d commit cea8943
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/screens/WalletConnectApprovalSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default function WalletConnectApprovalSheet() {

const verifiedData = params?.verifiedData;
const { data: metadata } = useDappMetadata({
url: verifiedData?.verifyUrl || dappUrl,
url: verifiedData?.origin || dappUrl,
});

const isScam = metadata?.status === DAppStatus.Scam;
Expand Down
2 changes: 1 addition & 1 deletion src/walletConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export async function onAuthRequest(event: Web3WalletTypes.AuthRequest) {
// need to prefetch dapp metadata since portal is static
const url =
// @ts-ignore Web3WalletTypes.AuthRequest type is missing VerifyContext
event?.verifyContext?.verifyUrl || event.params.requester.metadata.url;
event?.verifyContext?.origin || event.params.requester.metadata.url;
const metadata = await fetchDappMetadata({ url, status: true });

const isScam = metadata.status === DAppStatus.Scam;
Expand Down
2 changes: 1 addition & 1 deletion src/walletConnect/sheets/AuthRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function AuthRequest({

const { icons, name, url } = requesterMeta;

const dappUrl = verifiedData?.verifyUrl || url;
const dappUrl = verifiedData?.origin || url;
const { data: metadata } = useDappMetadata({ url: dappUrl });

const isScam = metadata?.status === DAppStatus.Scam;
Expand Down

0 comments on commit cea8943

Please sign in to comment.