From 0976fb5a1bc29b0b1938aabb032fb8461c34e192 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Fri, 14 Jun 2024 13:09:18 -0400 Subject: [PATCH] update _abi_decode to abi_decode, add a comment --- tests/functional/builtins/codegen/test_abi_decode_fuzz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/builtins/codegen/test_abi_decode_fuzz.py b/tests/functional/builtins/codegen/test_abi_decode_fuzz.py index 0bb0ad47f1..d12b2cde7e 100644 --- a/tests/functional/builtins/codegen/test_abi_decode_fuzz.py +++ b/tests/functional/builtins/codegen/test_abi_decode_fuzz.py @@ -327,6 +327,8 @@ def payload_copier(get_contract_from_ir): PARALLELISM = 1 # increase on fuzzer box +# NOTE: this is a heavy test. 100 types * 100 payloads per type can take +# 3-4minutes on a regular CPU core. @pytest.mark.parametrize("_n", list(range(PARALLELISM))) @hp.given(typ=vyper_type()) @hp.settings(max_examples=100, **_settings) @@ -356,7 +358,7 @@ def test_abi_decode_fuzz(_n, typ, get_contract, tx_failed, payload_copier): code = f""" @external def run(xs: Bytes[{buffer_bound}]) -> {type_str}: - ret: {type_str} = _abi_decode(xs, {type_str}) + ret: {type_str} = abi_decode(xs, {type_str}) return ret interface Foo: