Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow deprecated wallets from parsing links #5412

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Dec 24, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense

@@ -226,6 +227,9 @@ async function handleLink(navigation: NavigationBase, dispatch: Dispatch, state:
const parseWallets = async (): Promise<void> => {
// Try to parse with all wallets
for (const wallet of Object.values(currencyWallets)) {
// Ignore disabled wallets:
if (SPECIAL_CURRENCY_INFO[wallet.currencyInfo.pluginId].keysOnlyMode) return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since keysOnlyMode can be undefined, we should do const { keysOnlyMode = false } = SPECIAL_CURRENCY_INFO, and then you can do if (keysOnlyMode) on the next line. That makes the default value explicit.

@Jon-edge Jon-edge force-pushed the jon/fix/deprecated-scan branch from 2cf8164 to a4208e2 Compare December 26, 2024 00:01
@Jon-edge Jon-edge enabled auto-merge December 26, 2024 00:01
@Jon-edge Jon-edge disabled auto-merge December 26, 2024 00:09
@Jon-edge Jon-edge force-pushed the jon/fix/deprecated-scan branch from a4208e2 to ea4a5d3 Compare December 26, 2024 00:10
@Jon-edge Jon-edge enabled auto-merge December 26, 2024 00:14
@Jon-edge Jon-edge merged commit f972f5c into develop Dec 26, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/fix/deprecated-scan branch December 26, 2024 00:20
Copy link

@Farnoosh85 Farnoosh85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base-event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants