diff --git a/content-types/content-type-transaction-reference/src/TransactionReference.ts b/content-types/content-type-transaction-reference/src/TransactionReference.ts index 58c4a8d51..bf049fd86 100644 --- a/content-types/content-type-transaction-reference/src/TransactionReference.ts +++ b/content-types/content-type-transaction-reference/src/TransactionReference.ts @@ -17,7 +17,7 @@ export type TransactionReference = { */ namespace?: string; /** - * The networkId for the transaction, in decimal or hexidecimal format + * The networkId for the transaction, in decimal or hexadecimal format */ networkId: number | string; /** diff --git a/sdks/js-sdk/src/Client.ts b/sdks/js-sdk/src/Client.ts index 7a12f9e95..e19bf2f96 100644 --- a/sdks/js-sdk/src/Client.ts +++ b/sdks/js-sdk/src/Client.ts @@ -311,7 +311,7 @@ export default class Client { /** * Create and start a client associated with given wallet. * @param wallet the wallet as a Signer instance - * @param opts specify how to to connect to the network + * @param opts specify how to connect to the network */ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unnecessary-type-arguments diff --git a/sdks/js-sdk/src/Invitation.ts b/sdks/js-sdk/src/Invitation.ts index 0902ff1dc..e328b2bda 100644 --- a/sdks/js-sdk/src/Invitation.ts +++ b/sdks/js-sdk/src/Invitation.ts @@ -217,7 +217,7 @@ export class SealedInvitation implements invitation.SealedInvitation { const envelopeTime = Long.fromString(env.timestampNs); const headerTime = sealed.v1?.header.createdNs; if (!headerTime || !headerTime.equals(envelopeTime)) { - throw new Error("envelope and header timestamp mistmatch"); + throw new Error("envelope and header timestamp mismatch"); } return sealed; } diff --git a/sdks/js-sdk/src/authn/Token.ts b/sdks/js-sdk/src/authn/Token.ts index 23843bfa0..6076803ae 100644 --- a/sdks/js-sdk/src/authn/Token.ts +++ b/sdks/js-sdk/src/authn/Token.ts @@ -19,7 +19,7 @@ export default class Token implements authn.Token { this.authDataSignature = authDataSignature; } - // Get AuthData, generating from bytes and cacheing the first time it is accessed + // Get AuthData, generating from bytes and caching the first time it is accessed get authData(): AuthData { if (!this._authData) { this._authData = AuthData.fromBytes(this.authDataBytes); diff --git a/sdks/js-sdk/src/crypto/README.md b/sdks/js-sdk/src/crypto/README.md index aa3c72cd2..c6097c190 100644 --- a/sdks/js-sdk/src/crypto/README.md +++ b/sdks/js-sdk/src/crypto/README.md @@ -28,7 +28,7 @@ let pri2 = await store.loadPrivateKeyBundle(); ## Sending a message -The sender must obtain the advertized public key bundle of the recipient and use it and his/her private key bundle to derive a shared secret that is then used as input into the symmetric encryption of the payload. +The sender must obtain the advertised public key bundle of the recipient and use it and his/her private key bundle to derive a shared secret that is then used as input into the symmetric encryption of the payload. ```js // deserializing recipient's public key bundle (bytes obtained from the network) diff --git a/sdks/js-sdk/src/keystore/InMemoryKeystore.ts b/sdks/js-sdk/src/keystore/InMemoryKeystore.ts index da656a6d4..32e97f12d 100644 --- a/sdks/js-sdk/src/keystore/InMemoryKeystore.ts +++ b/sdks/js-sdk/src/keystore/InMemoryKeystore.ts @@ -498,7 +498,7 @@ export default class InMemoryKeystore implements KeystoreInterface { } else { throw new KeystoreError( ErrorCode.ERROR_CODE_INVALID_INPUT, - "must specifify identityKey or prekeyIndex", + "must specify identityKey or prekeyIndex", ); }