Skip to content

Commit

Permalink
fix lint abi decode
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 20, 2023
1 parent a7b03e9 commit d1f575c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vyper/builtins/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
bytes_data_ptr,
calculate_type_for_external_return,
check_external_call,
needs_clamp,
clamp,
clamp2,
clamp_basetype,
Expand All @@ -29,7 +28,6 @@
get_type_for_exact_size,
ir_tuple_from_args,
make_setter,
needs_external_call_wrap,
promote_signed_int,
sar,
shl,
Expand Down Expand Up @@ -2540,10 +2538,8 @@ def build_IR(self, expr, args, kwargs, context):
)
to_decode.encoding = Encoding.ABI

# optimization: skip make_setter when we don't need input validation
#if not needs_clamp(to_decode.typ, to_decode.encoding):
# ret.append(to_decode)
# return b1.resolve(IRnode.from_list(ret, typ=to_decode.typ, location=to_decode.location, encoding=to_decode.encoding))
# TODO optimization: skip make_setter when we don't need
# input validation

output_buf = context.new_internal_variable(wrapped_typ)
output = IRnode.from_list(output_buf, typ=wrapped_typ, location=MEMORY)
Expand Down

0 comments on commit d1f575c

Please sign in to comment.