diff --git a/src_features/provide_trusted_name/trusted_name.c b/src_features/provide_trusted_name/trusted_name.c index b543a32f4..e94c3f869 100644 --- a/src_features/provide_trusted_name/trusted_name.c +++ b/src_features/provide_trusted_name/trusted_name.c @@ -434,6 +434,7 @@ static bool handle_trusted_name_source(const s_tlv_data *data, s_trusted_name_ct return true; } +#ifdef HAVE_NFT_SUPPORT /** * Handler for tag \ref NFT_ID * @@ -452,6 +453,7 @@ static bool handle_nft_id(const s_tlv_data *data, s_trusted_name_ctx *context) { context->rcv_flags |= SET_BIT(NFT_ID_RCV_BIT); return true; // unhandled for now } +#endif bool handle_trusted_name_struct(const s_tlv_data *data, s_trusted_name_ctx *context) { bool ret; @@ -497,9 +499,11 @@ bool handle_trusted_name_struct(const s_tlv_data *data, s_trusted_name_ctx *cont case TRUSTED_NAME_SOURCE: ret = handle_trusted_name_source(data, context); break; +#ifdef HAVE_NFT_SUPPORT case NFT_ID: ret = handle_nft_id(data, context); break; +#endif default: PRINTF(TLV_TAG_ERROR_MSG, data->tag); ret = false; diff --git a/src_features/provide_trusted_name/trusted_name.h b/src_features/provide_trusted_name/trusted_name.h index f6d430ff4..68e96d56a 100644 --- a/src_features/provide_trusted_name/trusted_name.h +++ b/src_features/provide_trusted_name/trusted_name.h @@ -44,7 +44,9 @@ typedef struct { uint64_t chain_id; e_name_type name_type; e_name_source name_source; +#ifdef HAVE_NFT_SUPPORT uint8_t nft_id[INT256_LENGTH]; +#endif } s_trusted_name_info; typedef struct {