Skip to content

Instantly share code, notes, and snippets.

@ukstv
Created March 30, 2018 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ukstv/2ba36cb10c068dd17c5303baf16e4b4d to your computer and use it in GitHub Desktop.
Save ukstv/2ba36cb10c068dd17c5303baf16e4b4d to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.19;
import "zeppelin-solidity/contracts/token/ERC20/StandardToken.sol";
contract DistributeToken {
function execute(address _token, address a, address b, uint256 amountA, uint256 amountB) public {
StandardToken token = StandardToken(_token);
require(token.transfer(a, amountA));
require(token.transfer(b, amountB));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment