Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
toddkao committed Jan 31, 2025
1 parent 63f79b1 commit 0359125
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/widget/src/hooks/useCreateEvmWallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const useCreateEvmWallets = () => {
connector,
chainId: Number(chainID),
});
await disconnectAsync();
// await disconnectAsync();
// setEvmWallet(undefined);
const deeplink = window.localStorage.removeItem("WALLETCONNECT_DEEPLINK_CHOICE");
const recentWalletData = window.localStorage.removeItem("WCM_RECENT_WALLET_DATA");
Expand Down
9 changes: 5 additions & 4 deletions packages/widget/src/hooks/useCreateSolanaWallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ export const useCreateSolanaWallets = () => {
await wallet.connect();
const address = wallet.publicKey;
if (!address) throw new Error("No address found");
await wallet.disconnect();
setSvmWallet(undefined);
window.localStorage.removeItem("WALLETCONNECT_DEEPLINK_CHOICE");
window.localStorage.removeItem("WCM_RECENT_WALLET_DATA");
// await wallet.disconnect();
const deeplink = window.localStorage.removeItem("WALLETCONNECT_DEEPLINK_CHOICE");
const recentWalletData = window.localStorage.removeItem("WCM_RECENT_WALLET_DATA");
console.log(deeplink);

Check failure on line 86 in packages/widget/src/hooks/useCreateSolanaWallets.tsx

View workflow job for this annotation

GitHub Actions / eslint

Unexpected console statement
console.log(recentWalletData);

Check failure on line 87 in packages/widget/src/hooks/useCreateSolanaWallets.tsx

View workflow job for this annotation

GitHub Actions / eslint

Unexpected console statement
return address.toBase58();
}

Expand Down

0 comments on commit 0359125

Please sign in to comment.