Skip to content

Commit

Permalink
update namepace names
Browse files Browse the repository at this point in the history
  • Loading branch information
sankethn-spruce committed Sep 13, 2024
1 parent 7efaacc commit c9ddf43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/presentation/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ impl SessionManager {
.into_inner();

// Check if at least one of the two namespaces exists
let namespace_1_exists = namespaces.contains_key("org.iso.18013.5.1");
let namespace_2_exists = namespaces.contains_key("org.iso.18013.5.1.aamva");
let core_namespace_exists = namespaces.contains_key("org.iso.18013.5.1");
let aamva_namespace_exists = namespaces.contains_key("org.iso.18013.5.1.aamva");

if !namespace_1_exists && !namespace_2_exists {
if !core_namespace_exists && !aamva_namespace_exists {
return Err(Error::IncorrectNamespace);
}

Expand Down

0 comments on commit c9ddf43

Please sign in to comment.