Skip to content

Commit

Permalink
fix: typos InvalidBasicMEssageBodyError and signasture (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
  • Loading branch information
curtis-h authored and elribonazo committed May 2, 2024
1 parent a7de633 commit b8e77e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/domain/models/errors/Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class InvalidProposePresentationBodyError extends Error {
super(message || "Invalid ProposePresentation body Error");
}
}
export class InvalidBasicMEssageBodyError extends Error {
export class InvalidBasicMessageBodyError extends Error {
constructor(message?: string) {
super(message || "Invalid BasicMessage body Error");
}
Expand Down
4 changes: 2 additions & 2 deletions src/pollux/models/AnonCredsVerifiableCredential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export enum AnonCredsCredentialProperties {
sub = "sub",
credentialDefinitionId = "credentialDefinitionId",
values = "values",
signasture = "signature",
signature = "signature",
signatureCorrectnessProof = "signatureCorrectnessProof",
exp = "exp",
}
Expand Down Expand Up @@ -42,7 +42,7 @@ export class AnonCredsCredential
);
this.properties.set(AnonCredsCredentialProperties.values, values);

this.properties.set(AnonCredsCredentialProperties.signasture, signature);
this.properties.set(AnonCredsCredentialProperties.signature, signature);
this.properties.set(
AnonCredsCredentialProperties.signatureCorrectnessProof,
signature_correctness_proof
Expand Down
2 changes: 1 addition & 1 deletion src/prism-agent/helpers/ProtocolHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class ProtocolHelpers {

if (this.isBasicMessageBody(type, parsed)) {
if (parsed.content && typeof parsed.content !== "string") {
throw new AgentError.InvalidBasicMEssageBodyError("Invalid content");
throw new AgentError.InvalidBasicMessageBodyError("Invalid content");
}
return {
content: parsed.content,
Expand Down
2 changes: 1 addition & 1 deletion src/prism-agent/protocols/other/BasicMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class BasicMessage {
!fromMessage.from ||
!fromMessage.to
) {
throw new AgentError.InvalidBasicMEssageBodyError(
throw new AgentError.InvalidBasicMessageBodyError(
"Invalid BasicMessage body error."
);
}
Expand Down

0 comments on commit b8e77e6

Please sign in to comment.