Skip to content

Commit

Permalink
fix(dids): resolved feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <sliedrecht@berend.io>
  • Loading branch information
berendsliedrecht committed Jul 8, 2024
1 parent 6fdcf57 commit 4478cc4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/modules/dids/methods/jwk/JwkDidRegistrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export class JwkDidRegistrar implements DidRegistrar {
didRegistrationMetadata: {},
didState: {
state: 'failed',
reason: 'Key instance cannot be combined with key type, seed and or private key',
reason: 'Key instance cannot be combined with key type, seed or private key',
},
}
}

if (!key && keyType) {
if (keyType) {
key = await agentContext.wallet.createKey({
keyType,
seed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('DidRegistrar', () => {
didRegistrationMetadata: {},
didState: {
state: 'failed',
reason: 'Key instance cannot be combined with key type, seed and or private key',
reason: 'Key instance cannot be combined with key type, seed or private key',
},
})
})
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/modules/dids/methods/key/KeyDidRegistrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export class KeyDidRegistrar implements DidRegistrar {
didRegistrationMetadata: {},
didState: {
state: 'failed',
reason: 'Key instance cannot be combined with key type, seed and or private key',
reason: 'Key instance cannot be combined with key type, seed or private key',
},
}
}

if (!key && keyType) {
if (keyType) {
key = await agentContext.wallet.createKey({
keyType,
seed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('DidRegistrar', () => {
didRegistrationMetadata: {},
didState: {
state: 'failed',
reason: 'Key instance cannot be combined with key type, seed and or private key',
reason: 'Key instance cannot be combined with key type, seed or private key',
},
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ export class PeerDidRegistrar implements DidRegistrar {
didRegistrationMetadata: {},
didState: {
state: 'failed',
reason: 'Key instance cannot be combined with key type, seed and or private key',
reason: 'Key instance cannot be combined with key type, seed or private key',
},
}
}

if (!key && keyType) {
if (keyType) {
key = await agentContext.wallet.createKey({
keyType,
seed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('DidRegistrar', () => {
didRegistrationMetadata: {},
didState: {
state: 'failed',
reason: 'Key instance cannot be combined with key type, seed and or private key',
reason: 'Key instance cannot be combined with key type, seed or private key',
},
})
})
Expand Down

0 comments on commit 4478cc4

Please sign in to comment.