Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 17, 2023
1 parent f39effa commit e55eba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vyper/semantics/analysis/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e55eba6

Please sign in to comment.