Skip to content

Commit

Permalink
Added new unsupported trusted name types and sources
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger committed Dec 13, 2024
1 parent bf1e965 commit 623b550
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src_features/provideTrustedName/cmd_provide_trusted_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ static bool handle_trusted_name_type(const s_tlv_data *data,
case TN_TYPE_CONTRACT:
break;
case TN_TYPE_NFT_COLLECTION:
case TN_TYPE_TOKEN:
case TN_TYPE_WALLET:
case TN_TYPE_CONTEXT_ADDRESS:
default:
PRINTF("Error: unsupported trusted name type (%u)!\n", value);
return false;
Expand Down Expand Up @@ -545,6 +548,7 @@ static bool handle_trusted_name_source(const s_tlv_data *data,
case TN_SOURCE_UD:
case TN_SOURCE_FN:
case TN_SOURCE_DNS:
case TN_SOURCE_DYNAMIC_RESOLVER:
default:
PRINTF("Error: unsupported trusted name source (%u)!\n", value);
return false;
Expand Down
4 changes: 4 additions & 0 deletions src_features/provideTrustedName/trusted_name.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ typedef enum {
TN_TYPE_ACCOUNT = 1,
TN_TYPE_CONTRACT,
TN_TYPE_NFT_COLLECTION,
TN_TYPE_TOKEN,
TN_TYPE_WALLET,
TN_TYPE_CONTEXT_ADDRESS,
_TN_TYPE_COUNT_,
} e_name_type;

Expand All @@ -25,6 +28,7 @@ typedef enum {
TN_SOURCE_UD,
TN_SOURCE_FN,
TN_SOURCE_DNS,
TN_SOURCE_DYNAMIC_RESOLVER,
TN_SOURCE_COUNT,
} e_name_source;

Expand Down

0 comments on commit 623b550

Please sign in to comment.