From 9949022a0cc7828bb13dd7afbe80dd0adcc44388 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Wed, 5 Jun 2024 16:10:58 -0400 Subject: [PATCH] wrap types in tuple as necessary --- 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 b2690f78bb..34bd74c3bf 100644 --- a/tests/functional/builtins/codegen/test_abi_decode_fuzz.py +++ b/tests/functional/builtins/codegen/test_abi_decode_fuzz.py @@ -3,6 +3,7 @@ from eth.codecs import abi from hypothesis import given +from vyper.codegen.core import calculate_type_for_external_return from vyper.semantics.types import ( AddressT, BoolT, @@ -131,8 +132,9 @@ def _mutate(draw, payload, max_mutations=5): @st.composite def payload_from(draw, typ): + typ = calculate_type_for_external_return(typ) data = draw(data_for_type(typ)) - schema = f"({typ.abi_type.selector()})" + schema = typ.abi_type.selector() payload = abi.encode(schema, data) return draw(_mutate(payload))