Skip to content

Commit

Permalink
verkle: fix more tests bugs
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Sep 9, 2024
1 parent c6613f7 commit 3347b58
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/verkle/eip4762_verkle_gas_witness/test_contract_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ def code_with_jumps(size, jumps: list[Jump | Jumpi] = []):
# 21000 + 200 + 10 + 3 + 8,
# [[0, 0]],
# ),
( # sufficient_gas_for_jumpi_instruction_but_not_for_code_chunk
# code_with_jumps(150 * 31, [Jumpi(10, 1000, True)]),
# 21000 + 200 + 10 + 3 + 3 + 10,
# [[0, 0]],
),
# ( # sufficient_gas_for_jumpi_instruction_but_not_for_code_chunk
# code_with_jumps(150 * 31, [Jumpi(10, 1000, True)]),
# 21000 + 200 + 10 + 3 + 3 + 10,
# [[0, 0]],
# ),
# ( # jump_outside_code_size
# code_with_jumps(150 * 31, [Jump(50, 150 * 31 + 42)]),
# code_with_jumps(150 * 31, [Jump(10, 150 * 31 + 42)]),
# 1_000_000,
# [[0, 0]],
# ),
Expand All @@ -177,11 +177,11 @@ def code_with_jumps(size, jumps: list[Jump | Jumpi] = []):
# 1_000_000,
# [[0, 0]],
# ),
# ( # push20 with data split in two chunks
# Op.PUSH0 * (31 - (1 + 10)) + Op.PUSH20(0xAA),
# 1_000_000,
# [[0, 1]],
# ),
( # push20 with data split in two chunks
Op.PUSH0 * (31 - (1 + 10)) + Op.PUSH20(0xAA),
1_000_000,
[[0, 1]],
),
# ( # push32 spanning three chunks
# Op.PUSH0 * (31 - 1) + Op.PUSH32(0xAA),
# 1_000_000,
Expand Down Expand Up @@ -211,7 +211,7 @@ def code_with_jumps(size, jumps: list[Jump | Jumpi] = []):
# "sufficient_gas_for_jumpi_instruction_but_not_for_code_chunk",
# "jump_outside_code_size",
# "jumpi_outside_code_size",
# "push20_with_data_split_in_two_chunks",
"push20_with_data_split_in_two_chunks",
# "push32_spanning_three_chunks",
# "pushn_with_expected_data_past_code_size",
],
Expand Down

0 comments on commit 3347b58

Please sign in to comment.