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)