Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
refactor: SubmittableResult instead of TxStatus (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner authored Jul 3, 2020
1 parent 1cb752a commit 3e492c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/containers/ClaimView/ClaimView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ClaimView extends React.Component<Props, State> {
}
}

private resolveClaim(claimId: Claims.Entry['id']): sdk.Claim | undefined {
private resolveClaim(claimId: Claims.Entry['id']): sdk.IClaim | undefined {
const { claimEntries } = this.props

const claimToAttest = claimEntries.find(
Expand Down
4 changes: 2 additions & 2 deletions src/services/DidService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DidService {
} as IContact)

const status = await did.store(myIdentity.identity)
if (status.type !== 'Finalized') {
if (status.isError) {
throw new Error(
`Error creating DID for identity ${myIdentity.metaData.name}`
)
Expand All @@ -47,7 +47,7 @@ class DidService {

public static async deleteDid(myIdentity: IMyIdentity): Promise<void> {
const status = await sdk.Did.remove(myIdentity.identity)
if (status.type !== 'Finalized') {
if (status.isError) {
throw new Error(
`Error deleting DID for identity ${myIdentity.metaData.name}`
)
Expand Down

0 comments on commit 3e492c5

Please sign in to comment.