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

fix(debug): fix show-text import and parameter exceptions #1522

Closed
wants to merge 1 commit into from

Conversation

mcudev
Copy link
Contributor

@mcudev mcudev commented Mar 7, 2021

i was testing the usb debug stuff and noticed that this had a stale import. after that was fixed, an exception was due to the positional parameter to Success.

reproduce with:

trezorctl debug show-text blah

@prusnak prusnak requested a review from matejcik March 7, 2021 09:26
@prusnak prusnak added this to the 21.04 milestone Mar 7, 2021
@@ -1,8 +1,9 @@
import trezor.messages.DebugLinkShowTextStyle as S
import trezor.ui.components.common.text as text
Copy link
Member

Choose a reason for hiding this comment

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

Seems like this should be components.tt.text (that's what we use in the rest of the codebase) - but let's wait for @matejcik - he knows more than me on this topic

Suggested change
import trezor.ui.components.common.text as text
import trezor.ui.components.tt.text as text

but I

@matejcik
Copy link
Contributor

matejcik commented Mar 8, 2021

i'm somewhat tempted to throw this code out completely, I don't think we will need it anymore. let's discuss that on standup

@mcudev
Copy link
Contributor Author

mcudev commented Mar 8, 2021

i only came across this because i was trying to test the debug usb interface with trezorctl. after looking deeper, trezorctl was using the wire interface anyways, and so was not testing what i wanted to.

Copy link

@AaronWashington AaronWashington left a comment

Choose a reason for hiding this comment

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

``

@matejcik
Copy link
Contributor

closing in favor of #1531

@matejcik matejcik closed this Mar 17, 2021
@mcudev mcudev deleted the debug_show_text_fix branch March 18, 2021 14:29
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.

None yet

4 participants