Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function depositToken(address token, uint amount) {
- //remember to call Token(address).approve(this, amount) or this contract will not be able to do the transfer on your behalf.
- if (token==0) throw;
- if (!Token(token).transferFrom(msg.sender, this, amount)) throw;
Add Comment
Please, Sign In to add comment