Skip to content

Commit

Permalink
feat(pollux): get rid of 'drop(1)' and 'dropRight(1)' on credential a…
Browse files Browse the repository at this point in the history
…ttachment value (#341)
  • Loading branch information
bvoiturier authored Feb 2, 2023
1 parent 50b1a83 commit b0a14d4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ private class PresentationServiceImpl(
val verifiableCredentials = issuedCredentials.map { issuedCredential =>
decode[io.iohk.atala.mercury.model.Base64](issuedCredential.signedCredential)
.map(x => new String(java.util.Base64.getDecoder().decode(x.base64)))
.map(_.drop(1).dropRight(1))
.map(x => JwtVerifiableCredentialPayload(JWT(x)))
.getOrElse(???)
}.toVector
Expand Down

0 comments on commit b0a14d4

Please sign in to comment.