Guest User

Untitled

a guest
Jan 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function depositToken(address token, uint amount) {
  2. //remember to call Token(address).approve(this, amount) or this contract will not be able to do the transfer on your behalf.
  3. if (token==0) throw;
  4. if (!Token(token).transferFrom(msg.sender, this, amount)) throw;
Add Comment
Please, Sign In to add comment