Skip to content

Commit

Permalink
remove bad check
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jun 5, 2024
1 parent f2c2443 commit 25b12ed
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/functional/builtins/codegen/abi_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ def spec_decode(typ: "VyperType", payload: bytes):


def _decode_r(abi_t: ABIType, current_offset: int, payload: bytes):
if not (abi_t.min_size() <= len(payload) <= abi_t.size_bound()):
# is this check necessary?
raise DecodeError("bad payload size")

if isinstance(abi_t, ABI_Tuple):
return tuple(_decode_multi_r(abi_t.subtypes, current_offset, payload))

Expand Down

0 comments on commit 25b12ed

Please # to comment.