Skip to content

Commit eb0aa22

Browse files
committed
extra fixes
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
1 parent e872f2e commit eb0aa22

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

tests/zkevm/test_worst_bytecode.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@
1010
import pytest
1111

1212
from ethereum_test_forks import Fork
13-
from ethereum_test_tools import (Account, Alloc, Block, BlockchainTestFiller,
14-
Environment, Hash, Transaction, While,
15-
compute_create2_address)
13+
from ethereum_test_tools import (
14+
Account,
15+
Alloc,
16+
Block,
17+
BlockchainTestFiller,
18+
Environment,
19+
Hash,
20+
Transaction,
21+
While,
22+
compute_create2_address,
23+
)
1624
from ethereum_test_tools.vm.opcode import Opcodes as Op
1725

1826
REFERENCE_SPEC_GIT_PATH = "TODO"
@@ -129,14 +137,14 @@ def test_worst_bytecode_single_opcode(
129137

130138
total_contracts_to_deploy = max_number_of_contract_calls
131139
approximate_gas_per_deployment = 4_970_000 # Obtained from evm tracing
132-
contracts_deployed_per_tx = BLOCK_GAS_LIMIT // approximate_gas_per_deployment
140+
contracts_deployed_per_tx = env.gas_limit // approximate_gas_per_deployment
133141

134142
deploy_txs = []
135143

136144
def generate_deploy_tx(contracts_to_deploy: int):
137145
return Transaction(
138146
to=factory_caller_address,
139-
gas_limit=BLOCK_GAS_LIMIT,
147+
gas_limit=env.gas_limit,
140148
gas_price=10**9, # Bump required due to the amount of full blocks
141149
data=Hash(contracts_deployed_per_tx),
142150
sender=pre.fund_eoa(),

0 commit comments

Comments
 (0)