Created
May 11, 2023 15:22
-
-
Save TehilaFavourite/5215bd34d8509e205551635d315c11ca to your computer and use it in GitHub Desktop.
This file contains 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.8.18; | |
contract Fallback { | |
event Log(string funct, address sender, uint value, bytes data); | |
fallback() external payable { | |
emit Log("fallback", msg.sender, msg.value, msg.data); | |
} | |
receive() external payable { | |
emit Log("receive", msg.sender, msg.value, ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment