Created
December 27, 2019 17:46
-
-
Save dAAAb/69903138f292e2c6b04371232cc2a6d8 to your computer and use it in GitHub Desktop.
Multisend-ERC20
This file contains 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
contract ERC20 { | |
function transfer(address _recipient, uint256 amount) public; | |
} | |
contract MultiTransfer { | |
function multiTransfer(ERC20 token, address[] _addresses, uint256 amount) public { | |
for (uint256 i = 0; i < _addresses.length; i++) { | |
token.transfer(_addresses[i], amount); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment