Skip to content

Commit

Permalink
fix: Correct type for credential proofType is Iden3SparseMerkleTreePr…
Browse files Browse the repository at this point in the history
…oof, not SparseMerkleTreeProof
  • Loading branch information
x1m3 committed Sep 9, 2024
1 parent 7996bfb commit f1c2588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func TestServer_GetCredential(t *testing.T) {
Id: "https://refresh-service.xyz",
Type: RefreshServiceType(verifiable.Iden3RefreshService2023),
},
ProofTypes: []string{"SparseMerkleTreeProof"},
ProofTypes: []string{"Iden3SparseMerkleTreeProof"},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/api/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func getProofs(credential *domain.Claim) []string {
}

if credential.MtProof {
proofs = append(proofs, string(verifiable.SparseMerkleTreeProof))
proofs = append(proofs, string(verifiable.Iden3SparseMerkleTreeProofType))
}

return proofs
Expand Down

0 comments on commit f1c2588

Please sign in to comment.