Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberthirst committed May 12, 2024
1 parent 45c5d3d commit df7c7c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vyper/builtins/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ def _make_slice_bounds_check(start, length, src_len):
return b1.resolve(b2.resolve(["assert", ok]))




def _build_adhoc_slice_node(sub: IRnode, start: IRnode, length: IRnode, context: Context) -> IRnode:
assert length.is_literal, "typechecker failed"
assert isinstance(length.value, int) # mypy hint
Expand All @@ -255,8 +253,8 @@ def _build_adhoc_slice_node(sub: IRnode, start: IRnode, length: IRnode, context:
buf = context.new_internal_variable(dst_typ)

with start.cache_when_complex("start") as (b1, start), length.cache_when_complex("length") as (
b2,
length,
b2,
length,
):
# `msg.data` by `calldatacopy`
if sub.value == "~calldata":
Expand Down

0 comments on commit df7c7c6

Please sign in to comment.