Skip to content

Commit

Permalink
Fix a few old creder field references not caught in tests. (#618)
Browse files Browse the repository at this point in the history
Signed-off-by: pfeairheller <[email protected]>
  • Loading branch information
pfeairheller authored Dec 1, 2023
1 parent 102db40 commit 4ccf7ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/keri/app/cli/commands/escrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,23 @@ 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

if (not escrow) or escrow == "broken-chain-escrow":
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

if (not escrow) or escrow == "missing-schema-escrow":
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

Expand Down
16 changes: 8 additions & 8 deletions src/keri/vdr/credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4ccf7ab

Please sign in to comment.