Skip to content

Instantly share code, notes, and snippets.

@apow2
Created April 30, 2021 01:00
Show Gist options
  • Save apow2/d176f5784b9d990c56ed975b7c019af2 to your computer and use it in GitHub Desktop.
Save apow2/d176f5784b9d990c56ed975b7c019af2 to your computer and use it in GitHub Desktop.
sink
// 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