Fixes NFT allowance wording on Stax

This commit is contained in:
Alexandre Paillier
2023-08-28 15:22:54 +02:00
parent 4b6e19292c
commit c6453e8781
2 changed files with 10 additions and 0 deletions

View File

@@ -108,7 +108,12 @@ static void handle_query_contract_id(void *parameters) {
switch (context->selectorIndex) {
case SET_APPROVAL_FOR_ALL:
#ifdef HAVE_NBGL
strlcpy(msg->version, "manage", msg->versionLength);
strlcat(msg->name, " allowance", msg->nameLength);
#else
strlcpy(msg->version, "Allowance", msg->versionLength);
#endif
break;
case SAFE_TRANSFER:
strlcpy(msg->version, "Transfer", msg->versionLength);

View File

@@ -116,7 +116,12 @@ static void handle_query_contract_id(void *parameters) {
switch (context->selectorIndex) {
case SET_APPROVAL_FOR_ALL:
case APPROVE:
#ifdef HAVE_NBGL
strlcpy(msg->version, "manage", msg->versionLength);
strlcat(msg->name, " allowance", msg->nameLength);
#else
strlcpy(msg->version, "Allowance", msg->versionLength);
#endif
break;
case SAFE_TRANSFER:
case SAFE_TRANSFER_DATA: