Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
chloefeal committed Dec 25, 2024
1 parent e825794 commit 51f3d39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/json-rpc-engine/src/JsonRpcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class JsonRpcEngine extends SafeEventEmitter {
* @param response - The response object.
* @param middleware - The middleware function to execute.
* @param returnHandlers - The return handlers array for the current request.
* @returns An array of any error encountered during middleware exection,
* @returns An array of any error encountered during middleware execution,
* and a boolean indicating whether the request should end.
*/
static async #runMiddleware(
Expand Down
6 changes: 3 additions & 3 deletions packages/name-controller/src/NameController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ describe('NameController', () => {
variation,
} as SetNameRequest),
).toThrow(
`Must specify a chain ID in hexidecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
`Must specify a chain ID in hexadecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
);
});

Expand Down Expand Up @@ -1670,7 +1670,7 @@ describe('NameController', () => {
});
});

it('stores emtpy array if result error while getting proposed name using provider', async () => {
it('stores empty array if result error while getting proposed name using provider', async () => {
const provider1 = createMockProvider(1);
const provider2 = createMockProvider(2);
const error = new Error('TestError');
Expand Down Expand Up @@ -2015,7 +2015,7 @@ describe('NameController', () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any),
).rejects.toThrow(
`Must specify a chain ID in hexidecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
`Must specify a chain ID in hexadecimal format or the fallback, "*", for variation when using 'ethereumAddress' type.`,
);
},
);
Expand Down
2 changes: 1 addition & 1 deletion packages/name-controller/src/NameController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ export class NameController extends BaseController<
variation !== FALLBACK_VARIATION)
) {
errorMessages.push(
`Must specify a chain ID in hexidecimal format or the fallback, "${FALLBACK_VARIATION}", for variation when using '${type}' type.`,
`Must specify a chain ID in hexadecimal format or the fallback, "${FALLBACK_VARIATION}", for variation when using '${type}' type.`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/permission-controller/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ console.log(existingPermissions)
### Requesting permissions incrementally
```typescript
// Given an artifically truncated permission state of:
// Given an artificially truncated permission state of:
// {
// 'metamask.io': {
// wallet_getSecretArray: {
Expand Down

0 comments on commit 51f3d39

Please sign in to comment.