Skip to content

Commit c409b84

Browse files
authored
fix(legacy): fix OK-12756 (#156)
1 parent da622de commit c409b84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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)