Taken a smart contract like the following:
contract A {
address public beneficiary;
function A(address _beneficiary) public {
beneficiary = _beneficiary;
}
function () public payable {
beneficiary.transfer(msg.value);
}
}
How would you write it in inline assembly? No problem for me with the constructor, but got stuck with the fallback function, since I don't know how to translate the transfer()