From c9b6d1c4ea7a761fb9be158cff8bab480d4d07da Mon Sep 17 00:00:00 2001 From: Ocenka Date: Tue, 17 Dec 2024 19:06:33 +0000 Subject: [PATCH 1/7] typos building-plugins.md --- .../content/hardhat-runner/docs/advanced/building-plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/hardhat-runner/docs/advanced/building-plugins.md b/docs/src/content/hardhat-runner/docs/advanced/building-plugins.md index 03cdc275f7..19e0eaf58e 100644 --- a/docs/src/content/hardhat-runner/docs/advanced/building-plugins.md +++ b/docs/src/content/hardhat-runner/docs/advanced/building-plugins.md @@ -8,7 +8,7 @@ Plugins are bits of reusable configuration. Anything that you can do in a plugin When developing a plugin the main tools available to integrate new functionality are extending the [Hardhat Runtime Environment](/advanced/hardhat-runtime-environment.md), extending the Hardhat config, defining new tasks and overriding existing ones, which are all configuration actions achieved through code. -Some examples of things you could achieve by creating a plugin are: running a linter when the `check` task runs, using different compiler versions for different files or generating an UML diagram for your contracts. +Some examples of things you could achieve by creating a plugin are: running a linter when the `check` task runs, using different compiler versions for different files or generating a UML diagram for your contracts. ## Extending the Hardhat Runtime Environment From 966833edf77e0a01eab1b943e43f176fe260d8b2 Mon Sep 17 00:00:00 2001 From: Ocenka Date: Tue, 17 Dec 2024 19:07:09 +0000 Subject: [PATCH 2/7] typos reverted.ts --- .../hardhat-chai-matchers/src/internal/reverted/reverted.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat-chai-matchers/src/internal/reverted/reverted.ts b/packages/hardhat-chai-matchers/src/internal/reverted/reverted.ts index bed2de13c7..7cbd4f69f2 100644 --- a/packages/hardhat-chai-matchers/src/internal/reverted/reverted.ts +++ b/packages/hardhat-chai-matchers/src/internal/reverted/reverted.ts @@ -135,7 +135,7 @@ function isTransactionReceipt(x: unknown): x is { status: number } { const status = (x as any).status; // this means we only support ethers's receipts for now; adding support for - // raw receipts, where the status is an hexadecimal string, should be easy + // raw receipts, where the status is a hexadecimal string, should be easy // and we can do it if there's demand for that return typeof status === "number"; } From 31460570d3e4650a614500ea871d56ba851b3fd9 Mon Sep 17 00:00:00 2001 From: Ocenka Date: Tue, 17 Dec 2024 19:07:48 +0000 Subject: [PATCH 3/7] typos reverted.ts --- packages/hardhat-chai-matchers/test/reverted/reverted.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat-chai-matchers/test/reverted/reverted.ts b/packages/hardhat-chai-matchers/test/reverted/reverted.ts index 7c73113384..ccc893cdd9 100644 --- a/packages/hardhat-chai-matchers/test/reverted/reverted.ts +++ b/packages/hardhat-chai-matchers/test/reverted/reverted.ts @@ -113,7 +113,7 @@ describe("INTEGRATION: Reverted", function () { ); }); - it("promise of an byte32 string", async function () { + it("promise of a byte32 string", async function () { await expect( Promise.resolve( "0x3230323400000000000000000000000000000000000000000000000000000000" From 4403f47be158a45f0dbe1e98406811042d79a83e Mon Sep 17 00:00:00 2001 From: Ocenka Date: Tue, 17 Dec 2024 19:11:35 +0000 Subject: [PATCH 4/7] typos cli.ts --- packages/hardhat-core/src/internal/cli/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat-core/src/internal/cli/cli.ts b/packages/hardhat-core/src/internal/cli/cli.ts index c00c3a0137..48ed4cdf75 100755 --- a/packages/hardhat-core/src/internal/cli/cli.ts +++ b/packages/hardhat-core/src/internal/cli/cli.ts @@ -277,7 +277,7 @@ async function main() { let taskArguments: TaskArguments; - // --help is a also special case + // --help is an also special case if (hardhatArguments.help && taskName !== TASK_HELP) { // we "move" the task and scope names to the task arguments, // and run the help task From b59ded237e10dca6e768446f33bc975926014c1b Mon Sep 17 00:00:00 2001 From: Ocenka Date: Tue, 17 Dec 2024 19:12:11 +0000 Subject: [PATCH 5/7] typos is-node-version-to-warn-on.ts --- .../hardhat-core/src/internal/cli/is-node-version-to-warn-on.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat-core/src/internal/cli/is-node-version-to-warn-on.ts b/packages/hardhat-core/src/internal/cli/is-node-version-to-warn-on.ts index cc954d0b3e..4a1945aa8b 100644 --- a/packages/hardhat-core/src/internal/cli/is-node-version-to-warn-on.ts +++ b/packages/hardhat-core/src/internal/cli/is-node-version-to-warn-on.ts @@ -7,7 +7,7 @@ import { SUPPORTED_NODE_VERSIONS } from "./constants"; * Determine if the node version should trigger an unsupported * warning. * - * The current rule is that a unsupported warning will be shown if + * The current rule is that an unsupported warning will be shown if * * 1. An odd numbered version of Node.js is used - as this will never go to LTS * 2. The version is less than the minimum supported version From 2e9eda85bde8c17bd38851c154f9e062ca4db907 Mon Sep 17 00:00:00 2001 From: Ocenka Date: Tue, 17 Dec 2024 19:15:54 +0000 Subject: [PATCH 6/7] typos typescript-support.ts --- packages/hardhat-core/src/internal/core/typescript-support.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat-core/src/internal/core/typescript-support.ts b/packages/hardhat-core/src/internal/core/typescript-support.ts index cfcd86eadd..a10993d4ae 100644 --- a/packages/hardhat-core/src/internal/core/typescript-support.ts +++ b/packages/hardhat-core/src/internal/core/typescript-support.ts @@ -17,7 +17,7 @@ export function willRunWithTypescript(configPath?: string): boolean { } /** - * Returns true if an Hardhat is already running with typescript. + * Returns true if a Hardhat is already running with typescript. */ export function isRunningWithTypescript(config: HardhatConfig): boolean { return isNonEsmTypescriptFile(config.paths.configFile); From 196ebad496ca8f5c88aaf77fcb107517b99e7182 Mon Sep 17 00:00:00 2001 From: Ocenka Date: Tue, 17 Dec 2024 19:17:06 +0000 Subject: [PATCH 7/7] typos config-validation.ts --- .../hardhat-core/src/internal/core/config/config-validation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardhat-core/src/internal/core/config/config-validation.ts b/packages/hardhat-core/src/internal/core/config/config-validation.ts index 57a22321c7..271d88eec8 100644 --- a/packages/hardhat-core/src/internal/core/config/config-validation.ts +++ b/packages/hardhat-core/src/internal/core/config/config-validation.ts @@ -383,7 +383,7 @@ export function getValidationErrors(config: any): string[] { if (hardhatNetwork !== undefined && typeof hardhatNetwork === "object") { if ("url" in hardhatNetwork) { errors.push( - `HardhatConfig.networks.${HARDHAT_NETWORK_NAME} can't have an url` + `HardhatConfig.networks.${HARDHAT_NETWORK_NAME} can't have a url` ); }