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

Resolves issue 678 - Clean up else condition to catch ALL remaining possibilities #684

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

fedebuyito
Copy link
Contributor

Description

Fix #678: The workflow was not catching condition when QR code (on seed exporting for backup confirmation step) is recognized but is not a SeedQR. Cleaning up else condition enables to catch ALL possibilities. Suggested by @kdmukai and Discuted with @newtonick on: #677 (comment)

Updated seed_flow test adding one of this cases (psbt), too.

Include screenshots of any new or modified screens (or at least explain why they were omitted)

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Documentation
  • Other

Checklist

  • I’ve run pytest and made sure all unit tests pass before sumbitting the PR

If you modified or added functionality/workflow, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms/os:

Note: Keep your changes limited in scope; if you uncover other issues or improvements along the way, ideally submit those as a separate PR. The more complicated the PR the harder to review, test, and merge.

Cleanup the else condition so that the return to SeedTranscribeSeedQRConfirmInvalidQRView occurs on all remaining possibilities (any QR that is not SeedQR).
Includes additional failure condition (when QR is recognized but is not a SeedQR) in flow test, directed toward SeedTranscribeSeedQRConfirmInvalidQRView
@newtonick newtonick added this to the 0.9.0 milestone Feb 27, 2025
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.

SeedTranscribeSeedQRConfirmScanView: Minor logic fix
2 participants