Loading...
pragma solidity ^0.4.0;
contract sendEth{
event Deposit(address _from, uint _amount, uint _balance);
function deposit() public payable{
emit Deposit(msg.sender,msg.value,address(this).balance);
}
function transferEth(address _to) public payable{
_to.transfer(msg.value);
}
function getBalance() public view returns(uint){
return address(this).balance;
}
}
contract receiveEth{
function () public payable{}
function getBalance() public view returns(uint){
return address(this).balance;
}
}