Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typos #5098

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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