Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
Signed-off-by: DenisRybas <[email protected]>
  • Loading branch information
DenisRybas committed Feb 13, 2024
1 parent 982659c commit 2a0f90d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions vdr/src/contracts/cl/schema_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions vdr/src/contracts/cl/types/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -94,7 +93,6 @@ pub mod test {
let id = schema_id(issuer_id, name.as_str());
let mut attr_names: HashSet<String> = 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(),
Expand Down

0 comments on commit 2a0f90d

Please sign in to comment.