Skip to content

Compile error - external and public on same function #7

@tescher

Description

@tescher

external and public on same function:

$ npx hardhat compile
Compiling 3 files with 0.8.4
ParserError: Visibility already specified as "external".
--> contracts/DAORoom.sol:27:38:
|
27 | function rent() external payable public onlyWhenVacant {
| ^^^^^^

Error HH600: Compilation failed
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions