Last active
October 5, 2017 12:47
-
-
Save trapp/d0811c2d27cf699c27e33dfe2da79795 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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