Skip to content

Commit

Permalink
fix: example
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed Jun 4, 2021
1 parent 20b1a2f commit 6740de8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/example.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-console */
import Kilt from '@kiltprotocol/sdk-js'
import type {
AttestedClaim,
Actors,
Claim,
CType,
Expand Down Expand Up @@ -124,7 +125,7 @@ async function doAttestation(
attester: Identity,
claim: Claim
): Promise<{
credential: Actors.Credential
credential: AttestedClaim
revocationHandle: Actors.types.IRevocationHandle
}> {
console.log(
Expand Down Expand Up @@ -213,7 +214,7 @@ async function doAttestation(

async function doVerification(
claimer: Identity,
credential: Actors.Credential
credential: AttestedClaim
): Promise<void> {
console.log(
((s) => s.padEnd(40 + s.length / 2, SEP).padStart(80, SEP))(
Expand Down

0 comments on commit 6740de8

Please sign in to comment.