From 8feb4943d9a5e8bba3435544e4e2277fa63a9809 Mon Sep 17 00:00:00 2001 From: Judy Wu Date: Fri, 6 Oct 2023 10:43:15 -0400 Subject: [PATCH] Update test to assert expected parameter names --- tests/e2e/compilation/test_resolution.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/e2e/compilation/test_resolution.py b/tests/e2e/compilation/test_resolution.py index 479e87d4a1..af7cbe2c77 100644 --- a/tests/e2e/compilation/test_resolution.py +++ b/tests/e2e/compilation/test_resolution.py @@ -54,7 +54,9 @@ def test_contract_function_parameter(solc_binary_path) -> None: compilation = CryticCompile(standard_json, solc=solc_path) slither = Slither(compilation) contract = slither.contracts[0] + function = contract.functions[0] + parameters = function.parameters - for function in contract.functions: - for parameter in function.parameters: - str(parameter) + assert (parameters[0].name == 'param1') + assert (parameters[1].name == '') + assert (parameters[2].name == 'param3')