Skip to content

Commit 8013d6e

Browse files
refactor(benchmark): update test for code generator
1 parent 50ec823 commit 8013d6e

File tree

5 files changed

+175
-508
lines changed

5 files changed

+175
-508
lines changed

src/ethereum_test_benchmark/benchmark_code_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def deploy_contracts(self, pre: Alloc, fork: Fork) -> None:
4545

4646
# Deploy target contract that contains the actual attack block
4747
self._target_contract_address = pre.deploy_contract(
48-
code=self.attack_block * max_iterations
48+
code=self.setup + self.attack_block * max_iterations
4949
)
5050

5151
# Create caller contract that repeatedly calls the target contract

0 commit comments

Comments
 (0)