Skip to content

Prevent eth/xdai from being sent to contracts #188

Description

@0xCardiE

Users or nodes could send by mistake XDAI to contracts and lose it,
to prevent that we can integrate a fallback that rejects those transactions.

receive() external payable {
    revert("Do not send Ether to this contract");
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions