Skip to content

Commit

Permalink
fix a now invalid nonreentrant key, fix an import
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 15, 2023
1 parent 3c70165 commit 8020afb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/parser/features/decorators/test_nonreentrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def set_callback(c: address):
@external
@payable
@nonreentrant('default')
@nonreentrant("lock")
def protected_function(val: String[100], do_callback: bool) -> uint256:
self.special_value = val
_amount: uint256 = msg.value
Expand All @@ -166,7 +166,7 @@ def unprotected_function(val: String[100], do_callback: bool):
@external
@payable
@nonreentrant('default')
@nonreentrant("lock")
def __default__():
pass
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/parser/types/test_identifier_naming.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import pytest

from vyper.ast.folding import BUILTIN_CONSTANTS
from vyper.ast.identifiers import RESERVED_KEYWORDS
from vyper.builtins.functions import BUILTIN_FUNCTIONS
from vyper.codegen.expr import ENVIRONMENT_VARIABLES
from vyper.exceptions import NamespaceCollision, StructureException, SyntaxException
from vyper.semantics.namespace import RESERVED_KEYWORDS
from vyper.semantics.types.primitives import AddressT

BUILTIN_CONSTANTS = set(BUILTIN_CONSTANTS.keys())
Expand Down

0 comments on commit 8020afb

Please sign in to comment.