Skip to content

Commit 06c0bdd

Browse files
fix: execute benchmark wrapper support
1 parent 9674b7a commit 06c0bdd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/testing/src/execution_testing/specs/benchmark.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,9 @@ def execute(
323323
) -> BaseExecute:
324324
"""Execute the benchmark test by sending it to the live network."""
325325
if execute_format == TransactionPost:
326+
assert self.blocks is not None
326327
return TransactionPost(
327-
blocks=[[self.tx]],
328+
blocks=[block.txs for block in self.blocks],
328329
post=self.post,
329330
)
330331
raise Exception(f"Unsupported execute format: {execute_format}")

tests/benchmark/compute/instruction/test_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_xcall(
169169

170170
contracts_deployment_tx = Transaction(
171171
to=factory_caller_address,
172-
gas_limit=env.gas_limit,
172+
gas_limit=20 * gas_benchmark_value,
173173
gas_price=10**6,
174174
data=Hash(num_contracts),
175175
sender=pre.fund_eoa(),

0 commit comments

Comments
 (0)