diff --git a/vyper/semantics/analysis/local.py b/vyper/semantics/analysis/local.py index 5dddad6ed2..104b5b0bf7 100644 --- a/vyper/semantics/analysis/local.py +++ b/vyper/semantics/analysis/local.py @@ -222,7 +222,6 @@ def __init__( if hasattr(t, "mutability") and t.mutability == StateMutability.PURE: # allowed continue - raise StateAccessViolation( "not allowed to query contract or environment variables in pure functions", node_list[0],