From 7a13db25adc947dec971151fe62f78f78cde61e6 Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:52:31 +0800 Subject: [PATCH] refactor user defined const folding --- vyper/ast/folding.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/vyper/ast/folding.py b/vyper/ast/folding.py index bd845dd1a7..0863dba174 100644 --- a/vyper/ast/folding.py +++ b/vyper/ast/folding.py @@ -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