@@ -256,11 +256,12 @@ int main()
256256 cJSON * claim ;
257257 cJSON_ArrayForEach (claim , matched_claim_names )
258258 {
259- char * claim_value = cJSON_GetStringValue (cJSON_GetObjectItem (cJSON_GetObjectItem (claim , "verification" ), "display" ));
259+ char * claim_display = cJSON_GetStringValue (cJSON_GetObjectItem (cJSON_GetObjectItem (claim , "verification" ), "display" ));
260+ char * claim_value = cJSON_GetStringValue (cJSON_GetObjectItem (cJSON_GetObjectItem (claim , "verification" ), "display_value" ));
260261 if (wasm_version > 1 )
261262 {
262263 printf ("AddFieldToEntrySet %s\n" , matched_id );
263- AddFieldToEntrySet (matched_id , claim_value , NULL , set_id , doc_idx );
264+ AddFieldToEntrySet (matched_id , claim_display , claim_value , set_id , doc_idx );
264265 }
265266 else
266267 { // TODO: remove
@@ -269,7 +270,7 @@ int main()
269270 cJSON_AddItemReferenceToObject (id_obj , "dcql_cred_id" , cJSON_GetObjectItem (matched_doc , "id" ));
270271 cJSON_AddItemReferenceToObject (id_obj , "provider_idx" , cJSON_CreateNumber (i ));
271272 char * id = cJSON_PrintUnformatted (id_obj );
272- AddFieldForStringIdEntry (id , claim_value , NULL );
273+ AddFieldForStringIdEntry (id , claim_display , claim_value );
273274 }
274275 }
275276 }
0 commit comments