Skip to content

Commit

Permalink
remove bytes conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed Nov 10, 2023
1 parent 162d6b3 commit 7c011ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/functional/builtins/folding/test_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
from vyper.exceptions import ArgumentException


def normalize_bytes(data):
return bytes(int.from_bytes(data, "big"))


@pytest.mark.fuzzing
@settings(max_examples=50)
@given(
Expand All @@ -39,7 +35,7 @@ def foo(a: bytes32) -> Bytes[{le}]:

s *= 2
le *= 2
assert normalize_bytes(contract.foo(a)) == new_node.value == bytes.fromhex(a[2:][s : (s + le)])
assert contract.foo(a) == new_node.value == bytes.fromhex(a[2:][s : (s + le)])


@pytest.mark.fuzzing
Expand Down

0 comments on commit 7c011ea

Please sign in to comment.