From 4ccf7ab944cd4350dc2c87726d61dcad0bebf250 Mon Sep 17 00:00:00 2001 From: Philip Feairheller Date: Fri, 1 Dec 2023 07:16:35 -0800 Subject: [PATCH] Fix a few old creder field references not caught in tests. (#618) Signed-off-by: pfeairheller --- src/keri/app/cli/commands/escrow.py | 6 +++--- src/keri/vdr/credentialing.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/keri/app/cli/commands/escrow.py b/src/keri/app/cli/commands/escrow.py index e64e8dd4e..24d78f335 100644 --- a/src/keri/app/cli/commands/escrow.py +++ b/src/keri/app/cli/commands/escrow.py @@ -128,7 +128,7 @@ def escrows(tymth, tock=0.0, **opts): creds = list() for (said,), dater in reger.mre.getItemIter(): creder, *_ = reger.cloneCred(said) - creds.append(creder.crd) + creds.append(creder.sad) escrows["missing-registry-escrow"] = creds @@ -136,7 +136,7 @@ def escrows(tymth, tock=0.0, **opts): creds = list() for (said,), dater in reger.mce.getItemIter(): creder, *_ = reger.cloneCred(said) - creds.append(creder.crd) + creds.append(creder.sad) escrows["broken-chain-escrow"] = creds @@ -144,7 +144,7 @@ def escrows(tymth, tock=0.0, **opts): creds = list() for (said,), dater in reger.mse.getItemIter(): creder, *_ = reger.cloneCred(said) - creds.append(creder.crd) + creds.append(creder.sad) escrows["missing-schema-escrow"] = creds diff --git a/src/keri/vdr/credentialing.py b/src/keri/vdr/credentialing.py index 180a8fbb9..cd4519bf2 100644 --- a/src/keri/vdr/credentialing.py +++ b/src/keri/vdr/credentialing.py @@ -497,8 +497,8 @@ def incept(self, iserder, anc): """ Parameters: - iserder (Serder): Serder object of TEL iss event - anc (Serder): Serder object of anchoring event + iserder (SerderKERI): Serder object of TEL iss event + anc (SerderKERI): Serder object of anchoring event Returns: Registry: created registry @@ -539,12 +539,12 @@ def issue(self, creder, iserder, anc): Create and process the credential issuance TEL events on the given registry Parameters: - creder (Creder): credential to issue - iserder (Serder): Serder object of TEL iss event - anc (Serder): Serder object of anchoring event + creder (SerderACDC): credential to issue + iserder (SerderKERI): Serder object of TEL iss event + anc (SerderKERI): Serder object of anchoring event """ - regk = creder.status + regk = creder.regi registry = self.rgy.regs[regk] hab = registry.hab @@ -584,7 +584,7 @@ def revoke(self, creder, rserder, anc): anc (Serder): Serder object of anchoring event """ - regk = creder.status + regk = creder.regi registry = self.rgy.regs[regk] hab = registry.hab @@ -976,7 +976,7 @@ def sendArtifacts(hby, reger, postman, creder, recp): def sendRegistry(hby, reger, postman, creder, sender, recp): issr = creder.issuer - regk = creder.status + regk = creder.regi if regk is None: return