Skip to content

Commit

Permalink
fix: 🐛 fix did document context to array
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatpotato13 committed Apr 16, 2024
1 parent 18476e6 commit 5f93ed0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/resolver/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ impl DIDResolver for InfraDIDResolver {
];

let doc = Document {
context: ssi_dids::Contexts::One(ssi_dids::Context::URI(
context: ssi_dids::Contexts::Many(vec![ssi_dids::Context::URI(
ssi_dids::DEFAULT_CONTEXT.into(),
)),
)]),
id: did.to_string(),
verification_method: Some(vms),
authentication: Some(vm_urls.clone()),
Expand Down
4 changes: 3 additions & 1 deletion tests/did-infra-space.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"@context": "https://www.w3.org/ns/did/v1",
"@context": [
"https://www.w3.org/ns/did/v1"
],
"id": "did:infra:01:5GpEYnXBoLgvzyWe4Defitp5UV25xZUiUCJM2xNgkDXkM4NW",
"verificationMethod": [
{
Expand Down

0 comments on commit 5f93ed0

Please # to comment.