Skip to content

Commit

Permalink
fix another signature
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed May 16, 2024
1 parent 47f1932 commit fe699f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vyper/venom/passes/sccp/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ def _evm_signextend(value, nbytes) -> int:
return value


def _evm_iszero(ops: list[IROperand]) -> int:
value = ops[0].value
def _evm_iszero(value: int) -> int:
assert SizeLimits.MIN_INT256 <= value <= SizeLimits.MAX_UINT256, "Value out of bounds"
return int(value == 0) # 1 if True else 0

Expand Down

0 comments on commit fe699f1

Please sign in to comment.