SplitPayment now requires payees. (#1131)
* SplitPayment now requires payees. * Improved test phrasing.
This commit is contained in:
@ -23,6 +23,7 @@ contract SplitPayment {
|
||||
*/
|
||||
constructor(address[] _payees, uint256[] _shares) public payable {
|
||||
require(_payees.length == _shares.length);
|
||||
require(_payees.length > 0);
|
||||
|
||||
for (uint256 i = 0; i < _payees.length; i++) {
|
||||
addPayee(_payees[i], _shares[i]);
|
||||
|
||||
Reference in New Issue
Block a user