Skip to content

Hardhat utils: constants zero hash - #8567

Open
ChristopherDedominici wants to merge 5 commits into
hh-utils-to-checksum-addressfrom
constants-zero-hash
Open

Hardhat utils: constants zero hash#8567
ChristopherDedominici wants to merge 5 commits into
hh-utils-to-checksum-addressfrom
constants-zero-hash

Conversation

@ChristopherDedominici

@ChristopherDedominici ChristopherDedominici commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

@ChristopherDedominici ChristopherDedominici self-assigned this Aug 24, 2026
@ChristopherDedominici ChristopherDedominici added no docs needed This PR doesn't require links to documentation no peer bump needed labels Aug 24, 2026
@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f1c20c4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-project-automation github-project-automation Bot moved this to Backlog in Hardhat Aug 24, 2026
@ChristopherDedominici
ChristopherDedominici marked this pull request as ready for review August 24, 2026 14:20
Copilot AI lite review requested due to automatic review settings August 24, 2026 14:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new constants zero-hash util command to the internal hhu built-in plugin, exposing it via both hardhat utils constants zero-hash and the hhu CLI surface, and updates the CLI help snapshots and release notes accordingly.

Changes:

  • Added a constants zero-hash task that prints the 32-byte zero hash (0x + 64 zeros).
  • Added an integrated-task test that runs hre.tasks.getTask(["utils","constants","zero-hash"]) and asserts the printed output.
  • Updated hhu CLI help snapshot text and added a changeset for a patch release.

Suggested manual testing:

  • pnpm build
  • node packages/hardhat/dist/src/hhu.js constants zero-hash

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/hardhat/test/internal/cli/hhu.ts Updates hhu help-output snapshots to list constants zero-hash.
packages/hardhat/test/internal/builtin-plugins/hhu/tasks/constants/zero-hash.ts Adds an integration test for the hardhat utils constants zero-hash path.
packages/hardhat/src/internal/builtin-plugins/hhu/tasks/constants/zero-hash.ts Implements the zero-hash task action that prints the zero hash.
packages/hardhat/src/internal/builtin-plugins/hhu/tasks/constants/index.ts Registers the new zero-hash task in the constants namespace.
.changeset/sunny-cloths-search.md Declares a hardhat patch changeset for the new util.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 24, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Comment thread .changeset/sunny-cloths-search.md Outdated
@github-project-automation github-project-automation Bot moved this from Backlog to In Review in Hardhat Aug 27, 2026
Copilot AI review requested due to automatic review settings August 31, 2026 19:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 31, 2026 19:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no docs needed This PR doesn't require links to documentation no peer bump needed

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants