Skip to content

Commit d4d1576

Browse files
committed
fix(eof): eofwrap.py to respect original genesis env
1 parent 3cd05e0 commit d4d1576

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/cli/eofwrap.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,14 @@ def _short_exception_msg(self, e: Exception):
232232
return short
233233

234234
def _wrap_fixture(self, fixture: BlockchainFixture, traces: bool):
235-
env = Environment()
235+
env = Environment(
236+
difficulty=fixture.genesis.difficulty,
237+
gas_limit=fixture.genesis.gas_limit,
238+
base_fee_per_gas=fixture.genesis.base_fee_per_gas,
239+
blob_gas_used=fixture.genesis.blob_gas_used,
240+
excess_blob_gas=fixture.genesis.excess_blob_gas,
241+
parent_beacon_block_root=fixture.genesis.parent_beacon_block_root,
242+
)
236243

237244
pre = fixture.pre
238245

0 commit comments

Comments
 (0)