Skip to content

Commit d9b0353

Browse files
vtjl10mcmire
andauthored
fix: typos in documentation files (#5114)
This pull request contains changes to improve clarity, correctness and structure. **Description correction:** Corrected `exection` to `execution` Corrected `hexidecimal` to `hexadecimal` x2 Corrected `emtpy` to `empty` Please review the changes and let me know if any additional changes are needed. --------- Co-authored-by: Elliot Winkler <[email protected]>
1 parent 94c36a9 commit d9b0353

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/json-rpc-engine/src/JsonRpcEngine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ export class JsonRpcEngine extends SafeEventEmitter {
542542
* @param response - The response object.
543543
* @param middleware - The middleware function to execute.
544544
* @param returnHandlers - The return handlers array for the current request.
545-
* @returns An array of any error encountered during middleware exection,
545+
* @returns An array of any error encountered during middleware execution,
546546
* and a boolean indicating whether the request should end.
547547
*/
548548
static async #runMiddleware(

packages/name-controller/src/NameController.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ describe('NameController', () => {
621621
variation,
622622
} as SetNameRequest),
623623
).toThrow(
624-
`Must specify a chain ID in hexidecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
624+
`Must specify a chain ID in hexadecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
625625
);
626626
});
627627

@@ -1670,7 +1670,7 @@ describe('NameController', () => {
16701670
});
16711671
});
16721672

1673-
it('stores emtpy array if result error while getting proposed name using provider', async () => {
1673+
it('stores empty array if result error while getting proposed name using provider', async () => {
16741674
const provider1 = createMockProvider(1);
16751675
const provider2 = createMockProvider(2);
16761676
const error = new Error('TestError');
@@ -2015,7 +2015,7 @@ describe('NameController', () => {
20152015
// eslint-disable-next-line @typescript-eslint/no-explicit-any
20162016
} as any),
20172017
).rejects.toThrow(
2018-
`Must specify a chain ID in hexidecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
2018+
`Must specify a chain ID in hexadecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
20192019
);
20202020
},
20212021
);

packages/name-controller/src/NameController.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ export class NameController extends BaseController<
623623
variation !== FALLBACK_VARIATION)
624624
) {
625625
errorMessages.push(
626-
`Must specify a chain ID in hexidecimal format or the fallback, "${FALLBACK_VARIATION}", for variation when using '${type}' type.`,
626+
`Must specify a chain ID in hexadecimal format or the fallback, "${FALLBACK_VARIATION}", for variation when using '${type}' type.`,
627627
);
628628
}
629629
}

0 commit comments

Comments
 (0)