Skip to content

Commit 4c811a3

Browse files
authored
Fix typos (polkadot-js#5747)
1 parent 6fcd984 commit 4c811a3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/rpc-provider/src/substrate-connect/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class ScProvider implements ProviderInterface {
9999
throw new Error('Already connected!');
100100
}
101101

102-
// it could happen that after emitting `disconnected` due to the fact taht
102+
// it could happen that after emitting `disconnected` due to the fact that
103103
// smoldot is syncing, the consumer tries to reconnect after a certain amount
104104
// of time... In which case we want to make sure that we don't create a new
105105
// chain.

packages/types-codec/src/base/Option.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function decodeOption (registry: Registry, Type: CodecClass, value?: unknown): C
3535
// convert the actual value into known
3636
return new Type(registry, value.value);
3737
} else if (isNull(value) || isUndefined(value) || value === '0x' || value instanceof None) {
38-
// anyhting empty we pass as-is
38+
// anything empty we pass as-is
3939
return new None(registry);
4040
} else if (isU8a(value)) {
4141
// the isU8a check happens last in the if-tree - since the wrapped value

packages/types-codec/src/types/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export type AnyU8a = Uint8Array | number[] | string;
2727
export type UIntBitLength = 8 | 16 | 32 | 64 | 128 | 256;
2828

2929
// The 520 here is a weird one - it is explicitly for a [u8; 65] as found as a EcdsaSignature,
30-
// and 264 here is explicity for a [u8; 33] as found as EcdsaPublic key.
30+
// and 264 here is explicitly for a [u8; 33] as found as EcdsaPublic key.
3131
// Likewise 160 is for [u8; 20], which is also a H160, i.e. an Ethereum address. Both these are
3232
// as a result of the Polkadot claims module. (Technically we don't need the 520 in here)
3333
export type U8aBitLength = 8 | 16 | 32 | 64 | 128 | 160 | 256 | 264 | 512 | 520 | 1024 | 2048;

packages/types-known/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# @polkadot/types-known
22

3-
Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specfic types.
3+
Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specific types.

packages/types/src/generic/LookupSource.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('LookupSource', (): void => {
4444
testDecode(
4545
'AccountIndex (mixed prefixes)',
4646
registry.createType('IndicesLookupSource', '118r'),
47-
// NOTE Expected adress here is encoded with prefix 42, input above with 1
47+
// NOTE Expected address here is encoded with prefix 42, input above with 1
4848
'25GUyv'
4949
);
5050
testDecode(

0 commit comments

Comments
 (0)