Created
April 30, 2021 01:00
-
-
Save apow2/d176f5784b9d990c56ed975b7c019af2 to your computer and use it in GitHub Desktop.
sink
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.6.0 <0.9.0; | |
// This contract keeps all Ether sent to it with no way | |
// to get it back. | |
contract Sink { | |
event Received(address, uint); | |
receive() external payable { | |
emit Received(msg.sender, msg.value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment