Skip to content

Instantly share code, notes, and snippets.

@trapp
Last active October 5, 2017 12:47
Show Gist options
  • Save trapp/d0811c2d27cf699c27e33dfe2da79795 to your computer and use it in GitHub Desktop.
Save trapp/d0811c2d27cf699c27e33dfe2da79795 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