Skip to content

Commit

Permalink
add type always in didResolutionMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Jul 25, 2024
1 parent 032a697 commit ad8adca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/document/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func NewDidResolution() *DidResolution {
VerificationMethod: []verifiable.CommonVerificationMethod{},
},
DidResolutionMetadata: &DidResolutionMetadata{
Context: []string{iden3ResolutionContext},
Type: Iden3ResolutionMetadataType,
ContentType: defaultContentType,
Retrieved: time.Now(),
},
Expand Down
1 change: 0 additions & 1 deletion pkg/services/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op
}

didResolution.DidResolutionMetadata.Context = document.DidResolutionMetadataSigContext()
didResolution.DidResolutionMetadata.Type = document.Iden3ResolutionMetadataType
didResolution.DidResolutionMetadata.Proof = append(didResolution.DidResolutionMetadata.Proof, eip712Proof)
}

Expand Down

0 comments on commit ad8adca

Please sign in to comment.