diff --git a/packages/rpc-provider/src/substrate-connect/index.ts b/packages/rpc-provider/src/substrate-connect/index.ts index 28ef1cb342..c090534a43 100644 --- a/packages/rpc-provider/src/substrate-connect/index.ts +++ b/packages/rpc-provider/src/substrate-connect/index.ts @@ -99,7 +99,7 @@ export class ScProvider implements ProviderInterface { throw new Error('Already connected!'); } - // it could happen that after emitting `disconnected` due to the fact taht + // it could happen that after emitting `disconnected` due to the fact that // smoldot is syncing, the consumer tries to reconnect after a certain amount // of time... In which case we want to make sure that we don't create a new // chain. diff --git a/packages/types-codec/src/base/Option.ts b/packages/types-codec/src/base/Option.ts index 86d273a4be..326db7292f 100644 --- a/packages/types-codec/src/base/Option.ts +++ b/packages/types-codec/src/base/Option.ts @@ -35,7 +35,7 @@ function decodeOption (registry: Registry, Type: CodecClass, value?: unknown): C // convert the actual value into known return new Type(registry, value.value); } else if (isNull(value) || isUndefined(value) || value === '0x' || value instanceof None) { - // anyhting empty we pass as-is + // anything empty we pass as-is return new None(registry); } else if (isU8a(value)) { // the isU8a check happens last in the if-tree - since the wrapped value diff --git a/packages/types-codec/src/types/helpers.ts b/packages/types-codec/src/types/helpers.ts index 8e2973cf2f..f009ea39ac 100644 --- a/packages/types-codec/src/types/helpers.ts +++ b/packages/types-codec/src/types/helpers.ts @@ -27,7 +27,7 @@ export type AnyU8a = Uint8Array | number[] | string; export type UIntBitLength = 8 | 16 | 32 | 64 | 128 | 256; // The 520 here is a weird one - it is explicitly for a [u8; 65] as found as a EcdsaSignature, -// and 264 here is explicity for a [u8; 33] as found as EcdsaPublic key. +// and 264 here is explicitly for a [u8; 33] as found as EcdsaPublic key. // Likewise 160 is for [u8; 20], which is also a H160, i.e. an Ethereum address. Both these are // as a result of the Polkadot claims module. (Technically we don't need the 520 in here) export type U8aBitLength = 8 | 16 | 32 | 64 | 128 | 160 | 256 | 264 | 512 | 520 | 1024 | 2048; diff --git a/packages/types-known/README.md b/packages/types-known/README.md index b60583d8c6..f4784c5a89 100644 --- a/packages/types-known/README.md +++ b/packages/types-known/README.md @@ -1,3 +1,3 @@ # @polkadot/types-known -Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specfic types. +Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specific types. diff --git a/packages/types/src/generic/LookupSource.spec.ts b/packages/types/src/generic/LookupSource.spec.ts index f5a214566b..509d69814f 100644 --- a/packages/types/src/generic/LookupSource.spec.ts +++ b/packages/types/src/generic/LookupSource.spec.ts @@ -44,7 +44,7 @@ describe('LookupSource', (): void => { testDecode( 'AccountIndex (mixed prefixes)', registry.createType('IndicesLookupSource', '118r'), - // NOTE Expected adress here is encoded with prefix 42, input above with 1 + // NOTE Expected address here is encoded with prefix 42, input above with 1 '25GUyv' ); testDecode(