SplitPayment now requires payees. (#1131)

* SplitPayment now requires payees.

* Improved test phrasing.
This commit is contained in:
Nicolás Venturo
2018-08-06 16:21:34 -03:00
committed by GitHub
parent 31ac59b224
commit 94797978bb
2 changed files with 63 additions and 48 deletions

View File

@ -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]);