I tested fallback function in my smart contract, and noticed, that there is no transaction on etherscan from smart contract to my account.
In short: i try to send money to contract and receive back a half of sent amount. Here is a code of fallback function (really simple):
function () payable {
uint money = msg.value;
uint half = money / 2;
msg.sender.transfer(half);
}
For example, when i send 6 eth on contract, i receive back 3. It works, and i see transaction of sending 6 eth to contract in etherscan. But i don't see transaction of sending 3 eth back to my address.
Why?