Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function transact(address from, address to, uint tokens) public returns (bool success) {
  2. require(tokens > 0);
  3. balances[from] = safeSub(balances[from], tokens);
  4. balances[to] = safeAdd(balances[to], tokens);
  5. Transfer(from, to, tokens);
  6. return true;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement