Skip to content

Instantly share code, notes, and snippets.

@mirzap
Forked from trapp/DepositTracker
Created October 5, 2017 12:47
Show Gist options
  • Save mirzap/9388f750f5c46cc0a4ba6a8cfa15cb46 to your computer and use it in GitHub Desktop.
Save mirzap/9388f750f5c46cc0a4ba6a8cfa15cb46 to your computer and use it in GitHub Desktop.
import "owned";
contract DepositTracker is owned
{
event Deposit(address indexed from, uint value);
event Transfer(address indexed to, uint value);
function () {
Deposit(msg.sender, msg.value);
}
function transfer(address to, uint value) onlyowner {
to.send(value);
Transfer(to, value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment