Skip to content

Commit

Permalink
Merge pull request #6060 from vipocenka/fix/typos
Browse files Browse the repository at this point in the history
Fix incorrect usage of articles ("a" vs "an") in documentation
  • Loading branch information
alcuadrado authored Dec 17, 2024
2 parents 15cc673 + 196ebad commit edd7d35
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-chai-matchers/test/reverted/reverted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-core/src/internal/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edd7d35

Please sign in to comment.