diff --git a/utils/__tests__/externalUrls.spec.ts b/utils/__tests__/externalUrls.spec.ts index 1121781c..0ba68b98 100644 --- a/utils/__tests__/externalUrls.spec.ts +++ b/utils/__tests__/externalUrls.spec.ts @@ -155,7 +155,7 @@ describe('walletConnectDeepLinkUrl', () => { const input = 'wc:96c935c09bfae76a83d65747651a7e0c77592e3b7aeff8556bc91e9363a86689@2?expiryTimestamp=1728294685&relay-protocol=irn&symKey=8ba498cb98560cb940584b50450e77fe8699c29a5ecf28cbad7ee2f215685815' const expectedOutput = - 'io.universaleverything.universalprofiles:96c935c09bfae76a83d65747651a7e0c77592e3b7aeff8556bc91e9363a86689@2?expiryTimestamp=1728294685&relay-protocol=irn&symKey=8ba498cb98560cb940584b50450e77fe8699c29a5ecf28cbad7ee2f215685815' + 'io.universaleverything.universalprofiles://wallet-connect/96c935c09bfae76a83d65747651a7e0c77592e3b7aeff8556bc91e9363a86689@2?expiryTimestamp=1728294685&relay-protocol=irn&symKey=8ba498cb98560cb940584b50450e77fe8699c29a5ecf28cbad7ee2f215685815' expect(walletConnectDeepLinkUrl(input)).toBe(expectedOutput) }) @@ -163,7 +163,7 @@ describe('walletConnectDeepLinkUrl', () => { const input = 'wc:96c935c09bfae76a83d65747651a7e0c77592e3b7aeff8556bc91e9363a86689@2?expiryTimestamp=1728294685&relay-protocol=irn&symKey=8ba498cb98560cb940584b50450e77fe8699c29a5ecf28cbad7ee2f215685815' const expectedOutput = - 'io.universaleverything.universalprofiles:96c935c09bfae76a83d65747651a7e0c77592e3b7aeff8556bc91e9363a86689@2?expiryTimestamp=1728294685&relay-protocol=irn&symKey=8ba498cb98560cb940584b50450e77fe8699c29a5ecf28cbad7ee2f215685815&redirectUrl=http://localhost:3000/' + 'io.universaleverything.universalprofiles://wallet-connect/96c935c09bfae76a83d65747651a7e0c77592e3b7aeff8556bc91e9363a86689@2?expiryTimestamp=1728294685&relay-protocol=irn&symKey=8ba498cb98560cb940584b50450e77fe8699c29a5ecf28cbad7ee2f215685815&redirectUrl=http://localhost:3000/' expect(walletConnectDeepLinkUrl(input, { withRedirectUrl: true })).toBe( expectedOutput ) diff --git a/utils/externalUrls.ts b/utils/externalUrls.ts index c78550df..9bb743f2 100644 --- a/utils/externalUrls.ts +++ b/utils/externalUrls.ts @@ -169,7 +169,7 @@ export const walletConnectDeepLinkUrl = ( redirectQueryParam = `&redirectUrl=${redirectUrl}` } - const deepLink = `${MOBILE_APP_DEEP_LINK_PREFIX}:${urlData.pathname}${urlData.search}${redirectQueryParam}` + const deepLink = `${MOBILE_APP_DEEP_LINK_PREFIX}://wallet-connect/${urlData.pathname}${urlData.search}${redirectQueryParam}` if (genericLog.enabled) { genericLog(`Mobile App link: ${deepLink}`)