Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -3146,4 +3146,34 @@ describe("Hardhat module", function () {
assert.equal(metadata.chainId, 1000);
});
});

PROVIDERS.forEach(({ name, useProvider }) => {
workaroundWindowsCiFailures.call(this, { isFork: true });

describe(`Using ${name}`, function () {
setCWD();
useProvider({
hardfork: "prague",
});

it("Issue edr/1244", async function () {
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

The test name 'Issue edr/1244' is not descriptive of what the test validates. Consider renaming to something like 'should return correct block number after hardhat_reset with forking' to clearly describe the expected behavior being tested.

Suggested change
it("Issue edr/1244", async function () {
it("should return correct block number after hardhat_reset with forking", async function () {

Copilot uses AI. Check for mistakes.
if (ALCHEMY_URL === undefined) {
this.skip();
}

const MODIFIED_BLOCK_NUMBER = 11565019; // first block of 2021
await this.provider.send("hardhat_reset", [
{
forking: {
jsonRpcUrl: ALCHEMY_URL,
blockNumber: MODIFIED_BLOCK_NUMBER,
},
},
]);

const resultAfter = await this.provider.send("eth_blockNumber");
assert.equal(rpcQuantityToNumber(resultAfter), MODIFIED_BLOCK_NUMBER);
});
});
});
});
Loading