Skip to content

Commit dac366d

Browse files
authored
feat(osaka): Update EIP-7939 - update CLZ gas cost (#1879)
1 parent b453f41 commit dac366d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/osaka/eip7939_count_leading_zeros/spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ReferenceSpec:
1818
class Spec:
1919
"""Constants and helpers for the CLZ opcode."""
2020

21-
CLZ_GAS_COST = 3
21+
CLZ_GAS_COST = 5
2222

2323
@classmethod
2424
def calculate_clz(cls, value: int) -> int:

tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_clz_gas_cost(state_test: StateTestFiller, pre: Alloc, fork: Fork):
116116
CodeGasMeasure(
117117
code=Op.CLZ(Op.PUSH1(1)),
118118
extra_stack_items=1,
119-
overhead_cost=fork.gas_costs().G_VERY_LOW,
119+
overhead_cost=fork.gas_costs().G_LOW,
120120
),
121121
),
122122
storage={"0x00": "0xdeadbeef"},

0 commit comments

Comments
 (0)