From 9fd6128b94ef041b8c780ef9aa550693b2ebcec0 Mon Sep 17 00:00:00 2001 From: unknown <951161604@qq.com> Date: Thu, 15 Feb 2024 23:18:28 +0800 Subject: [PATCH 1/2] Changes to be committed: modified: examples/scripts/possible_paths.py --- examples/scripts/possible_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/scripts/possible_paths.py b/examples/scripts/possible_paths.py index 06b68c2bcd..6f83e13f0b 100644 --- a/examples/scripts/possible_paths.py +++ b/examples/scripts/possible_paths.py @@ -19,7 +19,7 @@ def resolve_function(contract_name, function_name): contract = contracts[0] # Obtain the target function target_function = next( - (function for function in contract.functions if function.name == function_name), None + (function for function in contract.functions_declared if function.name == function_name), None ) # Verify we have resolved the function specified. From f2f7598ccf2559a64ae8dd8f79ced7ae9e174c3d Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Sat, 17 Feb 2024 09:05:15 -0600 Subject: [PATCH 2/2] fmt --- examples/scripts/possible_paths.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/scripts/possible_paths.py b/examples/scripts/possible_paths.py index 6f83e13f0b..2057782a4b 100644 --- a/examples/scripts/possible_paths.py +++ b/examples/scripts/possible_paths.py @@ -19,7 +19,8 @@ def resolve_function(contract_name, function_name): contract = contracts[0] # Obtain the target function target_function = next( - (function for function in contract.functions_declared if function.name == function_name), None + (function for function in contract.functions_declared if function.name == function_name), + None, ) # Verify we have resolved the function specified.