Skip to content

Commit

Permalink
fix warning and test_version
Browse files Browse the repository at this point in the history
  • Loading branch information
rduarte83 committed Dec 6, 2023
1 parent fb482ba commit e679e6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/ui/bagl_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,7 @@ int ui_display_transaction() {

memset(g_amount, 0, sizeof(g_amount));
char amount[30] = {0};
if (!format_fpu64(amount,
sizeof(amount),
G_context.tx_info.transaction.value,
EXPONENT_SMALLEST_UNIT)) {
if (!format_fpu64(amount, sizeof(amount), *G_context.tx_info.transaction.value, EXPONENT_SMALLEST_UNIT)) {
return io_send_sw(SW_DISPLAY_AMOUNT_FAIL);
}
snprintf(g_amount, sizeof(g_amount), "BOL %.*s", sizeof(amount), amount);
Expand Down
6 changes: 3 additions & 3 deletions tests/test_version_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from application_client.boilerplate_response_unpacker import unpack_get_version_response

# Taken from the Makefile, to update every time the Makefile version is bumped
MAJOR = 2
MINOR = 1
PATCH = 0
MAJOR = 1
MINOR = 0
PATCH = 2

# In this test we check the behavior of the device when asked to provide the app version
def test_version(backend):
Expand Down

0 comments on commit e679e6b

Please sign in to comment.