From 98acf9f56cb0d90a5d4eb7619b1e4d4c190c9f2f Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 20 Mar 2024 10:47:52 +0100 Subject: [PATCH] fix: update qr value --- src/connectors/argentMobile/modal/argentModal.ts | 4 +++- src/connectors/webwallet/helpers/openWebwallet.ts | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connectors/argentMobile/modal/argentModal.ts b/src/connectors/argentMobile/modal/argentModal.ts index 9daeeb7..4ccc07a 100644 --- a/src/connectors/argentMobile/modal/argentModal.ts +++ b/src/connectors/argentMobile/modal/argentModal.ts @@ -72,8 +72,10 @@ class ArgentModal { const wcParam = encodeURIComponent(wcUri) const href = encodeURIComponent(window.location.href) + const desktopWcParam = `${this.mobileUrl}app/wc?uri=${wcParam}` + this.showModal({ - desktop: `${this.bridgeUrl}?wc=${wcParam}&device=desktop`, + desktop: `${this.bridgeUrl}?wc=${desktopWcParam}&device=desktop`, ios: `${this.mobileUrl}app/wc?uri=${wcParam}&href=${href}&device=mobile`, android: `${this.mobileUrl}app/wc?uri=${wcParam}&href=${href}&device=mobile`, }) diff --git a/src/connectors/webwallet/helpers/openWebwallet.ts b/src/connectors/webwallet/helpers/openWebwallet.ts index 44fdfe8..885b88d 100644 --- a/src/connectors/webwallet/helpers/openWebwallet.ts +++ b/src/connectors/webwallet/helpers/openWebwallet.ts @@ -4,7 +4,6 @@ import { trpcProxyClient } from "./trpc" import type { StarknetWindowObject } from "get-starknet-core" import { mapTargetUrlToNetworkId } from "../../../helpers/mapTargetUrlToNetworkId" import { fetchAllowedDapps } from "./fetchAllowedDapps" -import { ProviderInterface } from "starknet" const checkIncognitoChrome = async (isChrome: boolean) => { return new Promise((resolve) => {