Skip to content

Instantly share code, notes, and snippets.

@saintbyte saintbyte/test2.sol
Last active Jul 8, 2018

Embed
What would you like to do?
pragma solidity ^0.4.19;
contract Test2 {
function transferInEqualParts(uint256 summaryAmount, address [] recipients) public {
if ( recipients.length > 0) {
uint256 oneAmount = summaryAmount / recipients.length;
for(uint i = 0; i < recipients.length; i++){
recipients[i].transfer(oneAmount);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.