From e55eba665773190933a9c80ac3e5f1598b3d4f4c Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Fri, 17 Nov 2023 23:09:31 +0800 Subject: [PATCH] fix lint --- vyper/semantics/analysis/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vyper/semantics/analysis/module.py b/vyper/semantics/analysis/module.py index 02965eecd7..e57f72465b 100644 --- a/vyper/semantics/analysis/module.py +++ b/vyper/semantics/analysis/module.py @@ -242,9 +242,9 @@ def _validate_self_namespace(): if node.is_constant: if not node.value: raise VariableDeclarationException("Constant must be declared with a value", node) - + ExprVisitor().visit(node.value, type_) - + if not check_variable_constancy(node.value, VariableConstancy.COMPILE_TIME_CONSTANT): raise StateAccessViolation("Value must be a literal", node.value)