Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Fallback function - contracts/Lock.sol #34

@DevDevoted

Description

@DevDevoted

Probably should consider adding a fallback function, thus rejecting any eth sent directly to the contract:

receive() external payable {
revert("This contract does not accept Ether directly");
}

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