We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e823ff commit 4ac1b68Copy full SHA for 4ac1b68
tests/zkevm/test_worst_bytecode.py
@@ -99,9 +99,7 @@ def test_worst_bytecode_single_opcode(
99
100
# Set the block gas limit to a relative high value to ensure the code deposit tx
101
# fits in the block (there is enough gas available in the block to execute this)
102
- # TODO: verify this, I think we can just do `code_deposit_gas_minimum * 2 * num_contracts`?
103
- # and then take the max of this and the attack gas limit
104
- env = Environment(gas_limit=attack_gas_limit * 2 * (code_deposit_gas_minimum // loop_cost + 1))
+ env = Environment(gas_limit=code_deposit_gas_minimum * 2 * num_contracts)
105
106
# The initcode will take its address as a starting point to the input to the keccak
107
# hash function.
0 commit comments