Skip to content

Commit efb6ee0

Browse files
authored
Merge pull request #1657 from cosmos/1641-simon
Fix: Spelling errors in the code repository
2 parents 1528374 + 240428d commit efb6ee0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/crypto/src/bip39.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ export function entropyToMnemonic(entropy: Uint8Array): string {
20932093
return words.join(" ");
20942094
}
20952095

2096-
const invalidNumberOfWorks = "Invalid number of words";
2096+
const invalidNumberOfWords = "Invalid number of words";
20972097
const wordNotInWordlist = "Found word that is not in the wordlist";
20982098
const invalidEntropy = "Invalid entropy";
20992099
const invalidChecksum = "Invalid mnemonic checksum";
@@ -2105,7 +2105,7 @@ function normalize(str: string): string {
21052105
export function mnemonicToEntropy(mnemonic: string): Uint8Array {
21062106
const words = normalize(mnemonic).split(" ");
21072107
if (!allowedWordLengths.includes(words.length)) {
2108-
throw new Error(invalidNumberOfWorks);
2108+
throw new Error(invalidNumberOfWords);
21092109
}
21102110

21112111
// convert word indices to 11 bit binary strings

packages/faucet/src/api/webserver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class Webserver {
7171
if (entry.getTime() + cooldownTimeMs > Date.now()) {
7272
throw new HttpError(
7373
405,
74-
`Too many request for the same address. Blocked to prevent draining. Please wait ${constants.cooldownTime} seconds and try it again!`,
74+
`Too many requests for the same address. Blocked to prevent draining. Please wait ${constants.cooldownTime} seconds and try it again!`,
7575
);
7676
}
7777
}

packages/faucet/src/pathbuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { HdPath, stringToPath } from "@cosmjs/crypto";
33
export type PathBuilder = (account_index: number) => HdPath;
44

55
/**
6-
* Insert a BIP32 path that contains a valiable `a` for the numeric account index.
7-
* This variable will be replaces when the path builder is used.
6+
* Insert a BIP32 path that contains a variable `a` for the numeric account index.
7+
* This variable will be replaced when the path builder is used.
88
*
99
* @param pattern, e.g. m/44'/148'/a' for Stellar paths
1010
*/

packages/math/src/integers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Uint32 implements Integer, WithByteConverters {
4848

4949
const beBytes = endianess === "be" ? bytes : Array.from(bytes).reverse();
5050

51-
// Use mulitiplication instead of shifting since bitwise operators are defined
51+
// Use multiplication instead of shifting since bitwise operators are defined
5252
// on SIGNED int32 in JavaScript and we don't want to risk surprises
5353
return new Uint32(beBytes[0] * 2 ** 24 + beBytes[1] * 2 ** 16 + beBytes[2] * 2 ** 8 + beBytes[3]);
5454
}

0 commit comments

Comments
 (0)