Skip to content

Commit

Permalink
make immutables state
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbubbles committed Nov 4, 2024
1 parent e3d7582 commit c92e1ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/functional/codegen/features/decorators/test_pure.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def foo() -> uint256:

def test_invalid_module_immutable_access(make_input_bundle):
lib1 = """
phony: uint32
COUNTER: immutable(uint256)
@deploy
Expand Down
2 changes: 1 addition & 1 deletion vyper/semantics/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,6 @@ def is_stateless(module: vy_ast.Module):
for i in module.body:
if isinstance(i, (vy_ast.InitializesDecl, vy_ast.UsesDecl)):
return False
if isinstance(i, vy_ast.VariableDecl) and not i.is_constant and not i.is_immutable:
if isinstance(i, vy_ast.VariableDecl) and not i.is_constant:
return False
return True

0 comments on commit c92e1ad

Please sign in to comment.