We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0033dcd commit 5e60ee9Copy full SHA for 5e60ee9
packages/hardhat-core/test/internal/hardhat-network/stack-traces/execution.ts
@@ -1,3 +1,4 @@
1
+import { Common } from "@nomicfoundation/ethereumjs-common";
2
import { Transaction, TxData } from "@nomicfoundation/ethereumjs-tx";
3
import {
4
Account,
@@ -21,7 +22,9 @@ const senderAddress = privateToAddress(senderPrivateKey);
21
22
export async function instantiateVm(): Promise<VM> {
23
const account = Account.fromAccountData({ balance: 1e15 });
24
- const vm = await VM.create({ activatePrecompiles: true });
25
+ const common = new Common({ chain: "mainnet", hardfork: "shanghai" });
26
+
27
+ const vm = await VM.create({ activatePrecompiles: true, common });
28
29
await vm.stateManager.putAccount(new Address(senderAddress), account);
30
0 commit comments