Small refactoring on EIP712 set_struct_name function

This commit is contained in:
Alexandre Paillier
2022-07-05 11:53:22 +02:00
parent b782a69137
commit cd77ca5152
3 changed files with 7 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ bool handle_eip712_struct_def(const uint8_t *const apdu_buf)
switch (apdu_buf[OFFSET_P2])
{
case P2_NAME:
ret = set_struct_name(apdu_buf);
ret = set_struct_name(apdu_buf[OFFSET_LC], &apdu_buf[OFFSET_CDATA]);
break;
case P2_FIELD:
ret = set_struct_field(apdu_buf);