From 06c0bdd5223a67b7299b88dae746bc25e5c7df26 Mon Sep 17 00:00:00 2001 From: LouisTsai Date: Thu, 30 Oct 2025 17:40:51 +0800 Subject: [PATCH] fix: execute benchmark wrapper support --- packages/testing/src/execution_testing/specs/benchmark.py | 3 ++- tests/benchmark/compute/instruction/test_system.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/testing/src/execution_testing/specs/benchmark.py b/packages/testing/src/execution_testing/specs/benchmark.py index 1b7d022ae28..1b0d7697f18 100644 --- a/packages/testing/src/execution_testing/specs/benchmark.py +++ b/packages/testing/src/execution_testing/specs/benchmark.py @@ -323,8 +323,9 @@ def execute( ) -> BaseExecute: """Execute the benchmark test by sending it to the live network.""" if execute_format == TransactionPost: + assert self.blocks is not None return TransactionPost( - blocks=[[self.tx]], + blocks=[block.txs for block in self.blocks], post=self.post, ) raise Exception(f"Unsupported execute format: {execute_format}") diff --git a/tests/benchmark/compute/instruction/test_system.py b/tests/benchmark/compute/instruction/test_system.py index 80933bc979f..8badf0a676b 100644 --- a/tests/benchmark/compute/instruction/test_system.py +++ b/tests/benchmark/compute/instruction/test_system.py @@ -169,7 +169,7 @@ def test_xcall( contracts_deployment_tx = Transaction( to=factory_caller_address, - gas_limit=env.gas_limit, + gas_limit=20 * gas_benchmark_value, gas_price=10**6, data=Hash(num_contracts), sender=pre.fund_eoa(),