Skip to content

Commit f9e4daa

Browse files
committed
fix: hardfork conversion to EDR
1 parent cec7090 commit f9e4daa

File tree

1 file changed

+3
-1
lines changed
  • packages/hardhat-core/src/internal/hardhat-network/provider

1 file changed

+3
-1
lines changed

packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ export class EdrProviderWrapper
222222
const genesisState =
223223
fork !== undefined
224224
? []
225-
: l1GenesisState(l1HardforkFromString(config.hardfork));
225+
: l1GenesisState(
226+
l1HardforkFromString(ethereumsjsHardforkToEdrSpecId(hardforkName))
227+
);
226228

227229
const context = await getGlobalEdrContext();
228230
const provider = await context.createProvider(

0 commit comments

Comments
 (0)