From 2a0f90d53e2e7957d22fd87c06f8deaa42c63da0 Mon Sep 17 00:00:00 2001 From: DenisRybas Date: Tue, 13 Feb 2024 17:13:21 +0300 Subject: [PATCH] fixed tests Signed-off-by: DenisRybas --- vdr/src/contracts/cl/schema_registry.rs | 7 +++---- vdr/src/contracts/cl/types/schema.rs | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/vdr/src/contracts/cl/schema_registry.rs b/vdr/src/contracts/cl/schema_registry.rs index cd4abedb..58ab75ca 100644 --- a/vdr/src/contracts/cl/schema_registry.rs +++ b/vdr/src/contracts/cl/schema_registry.rs @@ -282,16 +282,15 @@ pub mod test { 145, 232, 190, 123, 84, 240, 64, 217, 94, 167, 52, 119, 152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 153, 123, 34, 105, 115, 115, 117, 101, 114, 73, 100, 34, 58, 34, + 0, 0, 0, 0, 0, 141, 123, 34, 105, 115, 115, 117, 101, 114, 73, 100, 34, 58, 34, 100, 105, 100, 58, 101, 116, 104, 114, 58, 116, 101, 115, 116, 110, 101, 116, 58, 48, 120, 102, 48, 101, 50, 100, 98, 54, 99, 56, 100, 99, 54, 99, 54, 56, 49, 98, 98, 53, 100, 54, 97, 100, 49, 50, 49, 97, 49, 48, 55, 102, 51, 48, 48, 101, 57, 98, 50, 98, 53, 34, 44, 34, 110, 97, 109, 101, 34, 58, 34, 70, 49, 68, 67, 108, 97, 70, 69, 122, 105, 51, 116, 34, 44, 34, 118, 101, 114, 115, 105, 111, 110, 34, 58, 34, 49, 46, 48, 46, 48, 34, 44, 34, 97, 116, 116, 114, 78, - 97, 109, 101, 115, 34, 58, 91, 34, 76, 97, 115, 116, 32, 78, 97, 109, 101, 34, - 44, 34, 70, 105, 114, 115, 116, 32, 78, 97, 109, 101, 34, 93, 125, 0, 0, 0, 0, - 0, 0, 0, + 97, 109, 101, 115, 34, 58, 91, 34, 70, 105, 114, 115, 116, 32, 78, 97, 109, + 101, 34, 93, 125, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ], signature: RwLock::new(None), hash: None, diff --git a/vdr/src/contracts/cl/types/schema.rs b/vdr/src/contracts/cl/types/schema.rs index b0595893..2b41196a 100644 --- a/vdr/src/contracts/cl/types/schema.rs +++ b/vdr/src/contracts/cl/types/schema.rs @@ -83,7 +83,6 @@ pub mod test { pub const SCHEMA_NAME: &str = "F1DClaFEzi3t"; pub const SCHEMA_VERSION: &str = "1.0.0"; pub const SCHEMA_ATTRIBUTE_FIRST_NAME: &str = "First Name"; - pub const SCHEMA_ATTRIBUTE_LAST_NAME: &str = "Last Name"; pub fn schema_id(issuer_id: &DID, name: &str) -> SchemaId { SchemaId::build(issuer_id, name, SCHEMA_VERSION) @@ -94,7 +93,6 @@ pub mod test { let id = schema_id(issuer_id, name.as_str()); let mut attr_names: HashSet = HashSet::new(); attr_names.insert(SCHEMA_ATTRIBUTE_FIRST_NAME.to_string()); - attr_names.insert(SCHEMA_ATTRIBUTE_LAST_NAME.to_string()); let schema = Schema { issuer_id: issuer_id.clone(),