Skip to content

Commit

Permalink
Merge pull request #2312 from crytic/fix/example
Browse files Browse the repository at this point in the history
Fix/example
  • Loading branch information
0xalpharush authored Feb 17, 2024
2 parents 82645a9 + f2f7598 commit 9fa8e8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/scripts/possible_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 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.
Expand Down

0 comments on commit 9fa8e8e

Please sign in to comment.