Skip to content

Commit

Permalink
Closes safe-global#209: Add event for incoming eth (safe-global#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeissner authored Mar 19, 2021
1 parent 9181e2e commit 93ae3aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/EtherPaymentFallback.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ pragma solidity >=0.7.0 <0.9.0;
/// @author Richard Meissner - <[email protected]>
contract EtherPaymentFallback {

event SafeReceived(address indexed sender, uint256 value);

/// @dev Fallback function accepts Ether transactions.
receive()
external
payable
{

emit SafeReceived(msg.sender, msg.value);
}
}

0 comments on commit 93ae3aa

Please sign in to comment.