Skip to content

Commit ff412d5

Browse files
Merge pull request #100 from LedgerHQ/develop
merge develop into master (B2CA-1859)
2 parents 78798ac + ca228d7 commit ff412d5

File tree

25 files changed

+8
-4
lines changed

25 files changed

+8
-4
lines changed

.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ SortIncludes: false
1212
SpaceAfterCStyleCast: true
1313
AllowShortCaseLabelsOnASingleLine: false
1414
AllowAllArgumentsOnNextLine: false
15-
AllowAllParametersOfDeclarationOnNextLine: false
1615
AllowShortBlocksOnASingleLine: Never
1716
AllowShortFunctionsOnASingleLine: None
1817
BinPackArguments: false
1918
BinPackParameters: false
2019
---
20+

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ APPNAME = "Solana"
3737
# Application version
3838
APPVERSION_M = 1
3939
APPVERSION_N = 5
40-
APPVERSION_P = 3
40+
APPVERSION_P = 4
4141
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"
4242

4343
# Application source files

src/handle_sign_message.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,18 @@ static bool check_swap_validity(const SummaryItemKind_t kinds[MAX_TRANSACTION_SU
9595
size_t num_summary_steps) {
9696
bool amount_ok = false;
9797
bool recipient_ok = false;
98-
if (num_summary_steps != 2) {
99-
PRINTF("2 steps expected for transaction in swap context, not %u\n", num_summary_steps);
98+
if (num_summary_steps != 2 && num_summary_steps != 3) {
99+
PRINTF("2 or 3 steps expected for transaction in swap context, not %u\n",
100+
num_summary_steps);
100101
return false;
101102
}
102103
for (size_t i = 0; i < num_summary_steps; ++i) {
103104
transaction_summary_display_item(i, DisplayFlagNone | DisplayFlagLongPubkeys);
104105
switch (kinds[i]) {
105106
case SummaryItemAmount:
107+
if (strcmp(G_transaction_summary_title, "Max fees") == 0) {
108+
break; // Should we check the fees ?
109+
}
106110
amount_ok =
107111
check_swap_amount(G_transaction_summary_title, G_transaction_summary_text);
108112
break;
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)