Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comment #748

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
2 changes: 1 addition & 1 deletion sdks/js-sdk/src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export default class Client<ContentTypes = any> {
/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion sdks/js-sdk/src/Invitation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion sdks/js-sdk/src/authn/Token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion sdks/js-sdk/src/crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sdks/js-sdk/src/keystore/InMemoryKeystore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
}

Expand Down