Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a few old creder field references not caught in tests. #618

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading