Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hardfork histories for opt and arb mainnet/sepolia #5394

Merged
merged 3 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 5 additions & 0 deletions .changeset/unlucky-tips-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Added hardfork histories for Optimim and Arbitrum chains
24 changes: 24 additions & 0 deletions packages/hardhat-core/src/internal/core/config/default-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,30 @@ export const defaultHardhatNetworkParams: Omit<
]),
},
],
[
Copy link
Member

Choose a reason for hiding this comment

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

This is ok, but i'd rather keep track of it, either with a comment or an issue (linked in a comment).

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in 1ad1973

10, // optimism mainnet
{
hardforkHistory: new Map([[HardforkName.SHANGHAI, 0]]),
},
],
[
11155420, // optimism sepolia
{
hardforkHistory: new Map([[HardforkName.SHANGHAI, 0]]),
},
],
[
42161, // arbitrum one
{
hardforkHistory: new Map([[HardforkName.SHANGHAI, 0]]),
},
],
[
421614, // arbitrum sepolia
{
hardforkHistory: new Map([[HardforkName.SHANGHAI, 0]]),
},
],
]),
};

Expand Down
Loading