-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Calling the tranfer() function should trigger a call to the receive() function of the recipient, whenever this function exists:
https://docs.soliditylang.org/en/latest/contracts.html#receive-ether-function
For example, consider the contracts:
contract C {
uint x;
receive() external payable { x = 5; }
}
contract D {
constructor() payable { }
function f(address a) public { payable(a).transfer(1); }
}After a call to f("0xC"), the value of state variable x in contract C should be equal to 5.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request