Skip to content

Commit 07bd1f1

Browse files
gurukamathSamWilsn
authored andcommitted
update clz gas cost
1 parent 2171f03 commit 07bd1f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ethereum/osaka/vm/instructions/bitwise.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ethereum_types.numeric import U256, Uint
1616

1717
from .. import Evm
18-
from ..gas import GAS_VERY_LOW, charge_gas
18+
from ..gas import GAS_LOW, GAS_VERY_LOW, charge_gas
1919
from ..stack import pop, push
2020

2121

@@ -256,7 +256,7 @@ def count_leading_zeros(evm: Evm) -> None:
256256
x = pop(evm.stack)
257257

258258
# GAS
259-
charge_gas(evm, GAS_VERY_LOW)
259+
charge_gas(evm, GAS_LOW)
260260

261261
# OPERATION
262262
bit_length = U256(x.bit_length())

0 commit comments

Comments
 (0)