Skip to content

Commit

Permalink
refactor user defined const folding
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 16, 2023
1 parent fc565d6 commit 7a13db2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vyper/ast/folding.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ def replace_user_defined_constants(vyper_module: vy_ast.Module) -> int:
changed_nodes = 0

for node in vyper_module.get_children(vy_ast.VariableDecl):
if not isinstance(node.target, vy_ast.Name):
# left-hand-side of assignment is not a variable
continue
if not node.is_constant:
# annotation is not wrapped in `constant(...)`
continue
Expand Down

0 comments on commit 7a13db2

Please sign in to comment.