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

feat: use correct status word when device is locked #199

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

emmanuelm41
Copy link
Contributor

@emmanuelm41 emmanuelm41 commented Oct 7, 2024

When the app is active, and the device gets locked, the device returns "Instruction Not Supported". It does not seem correct, as the instruction is indeed supported. The device is actually locked instead. I changed the status word used on this scenario, in order to inform properly to the client.

@NullSoldier
Copy link

NullSoldier commented Oct 7, 2024

Thank you, we actually intercept and handle this incorrect status word to know when the app is locked.

https://github.com/iron-fish/ironfish/blob/staging/ironfish-cli/src/ledger/ledger.ts#L44-L49

This is a great fix, looking forward to getting this merged and released. @
yogh333

@yogh333 yogh333 self-requested a review October 8, 2024 03:45
ledger_device_sdk/src/io.rs Show resolved Hide resolved
@yogh333
Copy link
Contributor

yogh333 commented Oct 8, 2024

@emmanuelm41 Sorry, but could you please revert the last commit (merge master branch) + rebase your PR 🙏 ?
Thanks !

@emmanuelm41
Copy link
Contributor Author

@yogh333 rebased!

@yogh333 yogh333 merged commit 6c29b08 into LedgerHQ:master Oct 8, 2024
41 checks passed
@emmanuelm41 emmanuelm41 deleted the feat/zondax-2 branch October 8, 2024 14:53
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