Skip to content

Commit cf20bf5

Browse files
committed
ui_stub for simulator: show transaction address and fee confirm screens
Simulator was logging the normal confirm screens, but not showing the Ethereum trransaction confirmation which were showing addresses and also fees. Now, simulator logs them just like the normal confirmation screen is shown. This is useful since it provides completeness on simulator outputs and also makes it easier to test/debug further changes. Signed-off-by: asi345 <[email protected]>
1 parent 055bda6 commit cf20bf5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/rust/bitbox02/src/ui/ui_stub_c_unit_tests.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ pub fn confirm_transaction_address_create<'a, 'b>(
130130
_address: &'a str,
131131
mut callback: AcceptRejectCb<'b>,
132132
) -> Component<'b> {
133+
crate::print_stdout(&format!(
134+
"CONFIRM TRANSACTION ADDRESS SCREEN START\nAMOUNT: {}\nADDRESS: {}\nCONFIRM TRANSACTION ADDRESS SCREEN END\n",
135+
_amount, _address
136+
));
133137
callback(true);
134138
Component {
135139
is_pushed: false,
@@ -143,6 +147,10 @@ pub fn confirm_transaction_fee_create<'a, 'b>(
143147
_longtouch: bool,
144148
mut callback: AcceptRejectCb<'b>,
145149
) -> Component<'b> {
150+
crate::print_stdout(&format!(
151+
"CONFIRM TRANSACTION FEE SCREEN START\nAMOUNT: {}\nFEE: {}\nCONFIRM TRANSACTION FEE SCREEN END\n",
152+
_amount, _fee
153+
));
146154
callback(true);
147155
Component {
148156
is_pushed: false,

0 commit comments

Comments
 (0)