Skip to content

Commit bace382

Browse files
Added new unsupported trusted name types and sources
1 parent c4b2df3 commit bace382

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src_features/provideTrustedName/cmd_provide_trusted_name.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ static bool handle_trusted_name_type(const s_tlv_data *data,
511511
case TN_TYPE_CONTRACT:
512512
break;
513513
case TN_TYPE_NFT_COLLECTION:
514+
case TN_TYPE_TOKEN:
515+
case TN_TYPE_WALLET:
516+
case TN_TYPE_CONTEXT_ADDRESS:
514517
default:
515518
PRINTF("Error: unsupported trusted name type (%u)!\n", value);
516519
return false;
@@ -545,6 +548,7 @@ static bool handle_trusted_name_source(const s_tlv_data *data,
545548
case TN_SOURCE_UD:
546549
case TN_SOURCE_FN:
547550
case TN_SOURCE_DNS:
551+
case TN_SOURCE_DYNAMIC_RESOLVER:
548552
default:
549553
PRINTF("Error: unsupported trusted name source (%u)!\n", value);
550554
return false;

src_features/provideTrustedName/trusted_name.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ typedef enum {
1212
TN_TYPE_ACCOUNT = 1,
1313
TN_TYPE_CONTRACT,
1414
TN_TYPE_NFT_COLLECTION,
15+
TN_TYPE_TOKEN,
16+
TN_TYPE_WALLET,
17+
TN_TYPE_CONTEXT_ADDRESS,
1518
_TN_TYPE_COUNT_,
1619
} e_name_type;
1720

@@ -25,6 +28,7 @@ typedef enum {
2528
TN_SOURCE_UD,
2629
TN_SOURCE_FN,
2730
TN_SOURCE_DNS,
31+
TN_SOURCE_DYNAMIC_RESOLVER,
2832
TN_SOURCE_COUNT,
2933
} e_name_source;
3034

0 commit comments

Comments
 (0)