-
-
Notifications
You must be signed in to change notification settings - Fork 673
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(core): show ETH account info on model T #4471
base: main
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
However, I noticed that the input flow for model T (Bolt) test does not visit all the possible info pages. TS3 Caesar input flow does that automatically which adds the screenshot with newly added info. If you think it's worth, please add it.
@@ -16,7 +16,7 @@ use heapless::Vec; | |||
|
|||
// So that there is only one implementation, and not multiple generic ones | |||
// as would be via `const N: usize` generics. | |||
const MAX_OPS: usize = 20; | |||
const MAX_OPS: usize = 23; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the previous value 20
was determined somehow before, maybe @matejcik can comment.
Anyway, we might be able to reduce it again once we get rid of font
command from FormattedText
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
99 % sure it was chosen so that some particular screen fits in the limit.
i'd strongly prefer getting rid of this completely but for now bumping to 23 is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd strongly prefer getting rid of this completely but for now bumping to 23 is fine
As we plan to use it more often, do you have an alternative to the fixed-sized Vec
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
impl OpsSource for T
🤷♀️
Actually it did not do it, it just visited the first 2 pages. I changed it so that they both visit all pages now. Please have a look at b9d222e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's first solve the requirements from @Hannsek
a1bbaf3
to
6e4befd
Compare
This PR is a follow-up of #4175 to show the account info of ETH transactions on model T, as it was previously only done on TS5.
Screenshots
Test command
trezorctl ethereum sign-tx -n "m/44'/60'/0'/0/0" -d 6162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f706162636465666768696a6b6c6d6e6f70 --max-gas-fee 100 --max-priority-fee 100 -e 2 -g 100 -G 100 -i 1 0x1d1c328764a41bda0492b66baa30c4a339ff85ef 11