From 11b4352063dcf2452fce647074f56e92fb0d8614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Thu, 12 Dec 2024 16:58:02 +0100 Subject: [PATCH] client: fix FindProof() --- toolkit/client/proof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/client/proof.go b/toolkit/client/proof.go index 2b933d4..019a0be 100644 --- a/toolkit/client/proof.go +++ b/toolkit/client/proof.go @@ -44,7 +44,7 @@ func FindProof(dlgs func() iter.Seq[*delegation.Bundle], issuer did.DID, cmd com var candidateLeaf []*delegation.Bundle for bundle := range dlgs() { - if dlgMatch(bundle.Decoded, issuer, cmd, subject) { + if !dlgMatch(bundle.Decoded, issuer, cmd, subject) { continue } candidateLeaf = append(candidateLeaf, bundle)