Skip to content

Commit c4388c6

Browse files
authored
fix(legacy): fix OK-12748 & OK-12756 (#157)
1 parent 57b03b6 commit c4388c6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

legacy/firmware/language.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,11 +687,11 @@ const char *languages[][2] = {
687687
{"Quit", "退出"},
688688
{"Quota:", "单次限额"},
689689
{"REJECT", "拒绝"},
690-
// layout2.c
691-
{"Raw levy value is", ""},
692690
//
693691
{"RESTART", "重启"},
694692
{"RETRY", "重试"},
693+
// layout2.c
694+
{"Raw levy value is", ""},
695695
// protect.c
696696
{"Re-enter new wipe code:", ""},
697697
// ethereum.c layout2.c

legacy/firmware/near.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ typedef enum {
3737
at_add_key,
3838
at_delete_key,
3939
at_delete_account,
40-
at_last_value = at_delete_account
40+
at_mul_action,
41+
at_last_value = at_mul_action
4142
} action_type_t;
4243

4344
void near_get_address_from_public_key(const uint8_t *public_key,
@@ -279,7 +280,7 @@ static int parse_transaction(const NearSignTx *msg, uint32_t *processed,
279280
}
280281

281282
if (actions_len != 1) {
282-
return -1;
283+
return at_mul_action;
283284
}
284285
// TODO: Parse more than one action
285286

@@ -325,6 +326,8 @@ bool near_sign_tx(const NearSignTx *msg, const HDNode *node,
325326
break;
326327
case at_delete_account:
327328
break;
329+
case at_mul_action:
330+
break;
328331
default:
329332
return false;
330333
}

0 commit comments

Comments
 (0)