fix: encode metamask dapp deep link
This commit is contained in:
@@ -15,7 +15,9 @@ export function walletDeepLink(
|
||||
JSON.stringify({ url: dappUrl, chain: "ETH" }),
|
||||
)}`;
|
||||
case "metaMask":
|
||||
return `https://metamask.app.link/dapp/${dappUrl.replace(/^https?:\/\//, "")}`;
|
||||
return `https://metamask.app.link/dapp/${encodeURIComponent(
|
||||
dappUrl.replace(/^https?:\/\//, ""),
|
||||
)}`;
|
||||
case "imToken":
|
||||
return `imtokenv2://navigate/DappView?url=${encodeURIComponent(dappUrl)}`;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user