Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn-x2 committed May 2, 2024
1 parent c555ce9 commit 22e5728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"check": "tsc -p tsconfig.json",
"clean": "yarn rimraf -g */{cjs,esm}",
"clean:docs": "rimraf docs/api",
"lint": "eslint --ext .ts . && prettier -c .",
"lint:fix": "prettier -w . && eslint --fix --ext .ts .",
"lint": "eslint --ext .ts .",
"lint:fix": "yarn lint --fix",
"prepublish": "yarn exec cp -f ../../LICENSE .",
"publish": "yarn npm publish --access=public",
"test:e2e:peregrine-provider": "yarn build && vitest run tests/peregrine-dip-consumer-template",
Expand Down
5 changes: 4 additions & 1 deletion src/dipProof/subjectIdentity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,8 @@ export async function generateDipIdentityProof({
throw new Error(providerApi.findError(proof.asErr.toHex()).docs.join("\n"))
}

return proof.asOk
// TODO: Better way to cast this?
const okProof = proof.asOk.toJSON() as any

return okProof
}

0 comments on commit 22e5728

Please sign in to comment.