Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ETHReceiverMock

Git Source

Title: ETHReceiverMock

Simple mock contract that can receive ETH transfers

Used for testing excess ETH refund scenarios

Functions

receive

Fallback function to receive ETH

receive() external payable;

Events

ETHReceived

Emitted when ETH is received

event ETHReceived(address indexed sender, uint256 amount);