Skip to content

Conversation

@memoyil
Copy link
Collaborator

@memoyil memoyil commented Oct 27, 2025


PR-Codex overview

This PR introduces a new utility function safeCheck to streamline error handling when checking for wallet installations. It also refactors several wallet detection functions to use this new utility, improving code readability and consistency.

Detailed summary

  • Added safeCheck function for error handling.
  • Refactored isBinanceWeb3WalletInstalled to use safeCheck.
  • Refactored isOkxWalletInstalled to use safeCheck.
  • Refactored isOperaWalletInstalled to use safeCheck.
  • Refactored isBraveWalletInstalled to use safeCheck.
  • Refactored isRabbyWalletInstalled to use safeCheck.
  • Refactored isMathWalletInstalled to use safeCheck.
  • Refactored isTokenPocketInstalled to use safeCheck.
  • Refactored isSafePalInstalled to use safeCheck.
  • Refactored isCoin98Installed to use safeCheck.
  • Refactored isCyberWalletInstalled to use safeCheck.
  • Refactored isPhantomWalletInstalled to use safeCheck.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2025

⚠️ No Changeset found

Latest commit: 3009d63

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Nov 13, 2025 11:47am
8 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
aptos-web Ignored Ignored Nov 13, 2025 11:47am
blog Ignored Ignored Nov 13, 2025 11:47am
bridge Ignored Ignored Nov 13, 2025 11:47am
games Ignored Ignored Nov 13, 2025 11:47am
gamification Ignored Ignored Nov 13, 2025 11:47am
solana Ignored Ignored Nov 13, 2025 11:47am
ton Ignored Ignored Nov 13, 2025 11:47am
uikit Ignored Ignored Nov 13, 2025 11:47am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants