Skip to content

@nonreentrant should not compile on constant functions #1544

@haydenadams

Description

@haydenadams

Right now this compiles:

@public
@constant
@nonreentrant('lock')
def tokenAddress() -> address:
    return self.token

however reentrancy should never be a problem in constant functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug that shouldn't change language semantics when fixed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions