Skip to content

Commit

Permalink
Merge pull request #5394 from NomicFoundation/add-l2-hardfork-histories
Browse files Browse the repository at this point in the history
Add hardfork histories for opt and arb mainnet/sepolia
  • Loading branch information
fvictorio authored Jun 19, 2024
2 parents 3c66da2 + 1ad1973 commit 11f13e5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
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
26 changes: 26 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,32 @@ export const defaultHardhatNetworkParams: Omit<
]),
},
],
// TODO: the rest of this config is a temporary workaround,
// see https://github.com/NomicFoundation/edr/issues/522
[
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

0 comments on commit 11f13e5

Please sign in to comment.