Skip to content

Commit

Permalink
add non-zero address requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Apr 8, 2019
1 parent aea6bf5 commit 48103d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/payment/PaymentSplitter.sol
Expand Up @@ -26,7 +26,8 @@ contract PaymentSplitter {
* the matching position in the `shares` array. Each account will then receive payments proportional to the
* percentage of the shares that they were assigned.
*
* Both arrays must have the same non-zero length, and there must be no duplicates in `payees`.
* All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
* duplicates in `payees`.
*/
constructor (address[] memory payees, uint256[] memory shares) public payable {
require(payees.length == shares.length);
Expand Down

0 comments on commit 48103d2

Please sign in to comment.