Skip to content

Update the config reference related to forking.blockNumber#254

Merged
alcuadrado merged 1 commit intomainfrom
forking-block-number
Apr 16, 2026
Merged

Update the config reference related to forking.blockNumber#254
alcuadrado merged 1 commit intomainfrom
forking-block-number

Conversation

@alcuadrado
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 11, 2026 12:55
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hardhat-website Ready Ready Preview, Comment Apr 11, 2026 0:55am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the configuration reference documentation to reflect that forking.blockNumber can be provided as a bigint.

Changes:

  • Document networks.*.forking.blockNumber as accepting number | bigint instead of only number.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 154 to 157
- `forking`: An object that describes the forking configuration and can have the following fields:
- `url`: a URL that points to a JSON-RPC node with state that you want to fork off. There's no default value for this field. It must be provided for the fork to work.
- `blockNumber`: an optional number to pin which block to fork from. If no value is provided, the latest block is used.
- `blockNumber`: an optional number or bigint to pin which block to fork from. If no value is provided, the latest block is used.
- `enabled`: an optional boolean to switch on or off the fork functionality. Default value: `true` if `url` is set, `false` otherwise.
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

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

This update documents networks.*.forking.blockNumber as number | bigint, but the same option is described later under “Solidity tests configuration” (test.solidity.forking.blockNumber) as just an “Optional block number” (no mention of bigint). Given the forking guide includes a bigint example (blockNumber: 23819000n), it’d be good to update that later reference too for consistency and to avoid confusing users.

Copilot uses AI. Check for mistakes.
@alcuadrado alcuadrado enabled auto-merge April 16, 2026 21:28
@alcuadrado alcuadrado disabled auto-merge April 16, 2026 21:44
@alcuadrado alcuadrado merged commit 8e35c1e into main Apr 16, 2026
7 checks passed
@alcuadrado alcuadrado deleted the forking-block-number branch April 16, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants