Skip to content

Commit 7cfeb38

Browse files
Renamed some APDUs in the app
1 parent 08ee8ee commit 7cfeb38

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/apdu_constants.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#define INS_EIP712_STRUCT_DEF 0x1A
2626
#define INS_EIP712_STRUCT_IMPL 0x1C
2727
#define INS_EIP712_FILTERING 0x1E
28-
#define INS_ENS_GET_CHALLENGE 0x20
29-
#define INS_ENS_PROVIDE_INFO 0x22
28+
#define INS_GET_CHALLENGE 0x20
29+
#define INS_PROVIDE_TRUSTED_NAME 0x22
3030
#define INS_PROVIDE_ENUM_VALUE 0x24
3131
#define INS_GTP_TRANSACTION_INFO 0x26
3232
#define INS_GTP_FIELD 0x28
@@ -52,8 +52,8 @@
5252
: x == INS_EIP712_STRUCT_DEF ? "EIP712_STRUCT_DEF" \
5353
: x == INS_EIP712_STRUCT_IMPL ? "EIP712_STRUCT_IMPL" \
5454
: x == INS_EIP712_FILTERING ? "EIP712_FILTERING" \
55-
: x == INS_ENS_GET_CHALLENGE ? "ENS_GET_CHALLENGE" \
56-
: x == INS_ENS_PROVIDE_INFO ? "ENS_PROVIDE_INFO" \
55+
: x == INS_GET_CHALLENGE ? "GET_CHALLENGE" \
56+
: x == INS_PROVIDE_TRUSTED_NAME ? "PROVIDE_TRUSTED_NAME" \
5757
: x == INS_PROVIDE_ENUM_VALUE ? "PROVIDE_ENUM_VALUE" \
5858
: x == INS_GTP_TRANSACTION_INFO ? "GTP_TRANSACTION_INFO" \
5959
: x == INS_GTP_FIELD ? "GTP_FIELD" \

src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ static uint16_t handleApdu(command_t *cmd, uint32_t *flags, uint32_t *tx) {
229229
sw = handle_eip712_filtering(cmd->p1, cmd->p2, cmd->data, cmd->lc, flags);
230230
break;
231231

232-
case INS_ENS_GET_CHALLENGE:
232+
case INS_GET_CHALLENGE:
233233
sw = handle_get_challenge(tx);
234234
break;
235235

236-
case INS_ENS_PROVIDE_INFO:
236+
case INS_PROVIDE_TRUSTED_NAME:
237237
sw = handle_trusted_name(cmd->p1, cmd->data, cmd->lc);
238238
break;
239239

0 commit comments

Comments
 (0)