Skip to content

Commit

Permalink
fix: missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Nov 8, 2023
1 parent 4fb6bba commit d0af856
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ class StatusList2021EntryClientService: RevocationClientService {
bitSet.set(idx)
val encodedList = createEncodedBitString(bitSet)
// create / update the status list credential
credentialStorage.store(statusCredential.id!!, credentialSubject.statusPurpose, String(encodedList))
statusCredential.issuerId?.let {
credentialStorage.store(
it, statusCredential.id!!, credentialSubject.statusPurpose, String(encodedList)
)
} ?: throw IllegalArgumentException("Missing issuer for statusList credential.")
}

private fun extractStatusListCredentialSubject(statusCredentialUrl: String): StatusListCredentialSubject? =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import id.walt.credentials.w3c.W3CCredentialSubject
import id.walt.credentials.w3c.builder.W3CCredentialBuilder
import id.walt.credentials.w3c.templates.VcTemplateService
import id.walt.credentials.w3c.toVerifiableCredential
import id.walt.model.DidMethod
import id.walt.servicematrix.ServiceProvider
import id.walt.services.WaltIdService
import id.walt.services.WaltIdServices
import id.walt.services.did.DidService
import id.walt.signatory.ProofConfig
import id.walt.signatory.ProofType
import id.walt.signatory.Signatory
Expand Down

0 comments on commit d0af856

Please sign in to comment.