Skip to content

Commit

Permalink
Merge branch 'main' into ownable-2-steps-coinbase
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter authored Oct 10, 2024
2 parents 5d42431 + 9bbee4e commit bd06c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kakarot_scripts/utils/find_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def find_cairo_functions(directory):
for file in files
if file.endswith(".cairo")
for match in re.findall(
r"func\s+(\w+)\(", open(os.path.join(root, file)).read()
r"func\s+(\w+)(?:\{|\()", open(os.path.join(root, file)).read()
)
]

Expand All @@ -26,7 +26,7 @@ def get_function_from_selector(selectors):


if __name__ == "__main__":
directory = "."
directory = "cairo_zero"
functions = find_cairo_functions(directory)
selectors = map_selectors(functions)
get_function_from_selector(selectors)

0 comments on commit bd06c65

Please sign in to comment.