Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed May 8, 2024
1 parent b9d26e6 commit 12dd1b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ function App() {
return;
}

const uri = window.localStorage.getItem('walletConnectURI');

if (wallet === 'metamask') {
WebApp.openLink('https://metamask.app.link/');
WebApp.openLink(`https://metamask.app.link/wc?uri=${uri}`);
} else if (wallet === 'trust') {
WebApp.openLink('https://link.trustwallet.com');
WebApp.openLink(`https://link.trustwallet.com/wc?uri=${uri}`);
}

axios
Expand Down
2 changes: 2 additions & 0 deletions src/components/connectOverlay/ConnectOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ const ConnectOverlay: React.FC<Props> = ({
wallet: wallet,
});
const providerId = response.data.providerId;
const uri = response.data.uri;

window.localStorage.setItem('providerId', providerId);
window.localStorage.setItem('walletConnectURI', uri);
window.localStorage.setItem('walletProvider', wallet);

WebApp.openLink(response.data.universalLink);
Expand Down

0 comments on commit 12dd1b7

Please sign in to comment.