Skip to content

Commit

Permalink
fix(arbitrable-permission-list): items counts logic
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Jul 26, 2018
1 parent 98342ec commit 2ace35e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/standard/permission/ArbitrablePermissionList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ contract ArbitrablePermissionList is PermissionInterface, Arbitrable {
function itemsCounts() public view returns (uint pending, uint challenged, uint accepted, uint rejected) {
for (uint i = 0; i < itemsList.length; i++) {
Item storage item = items[itemsList[i]];
if (item.status == ItemStatus.Resubmitted || item.status == ItemStatus.Submitted) pending++;
if (item.disputed) challenged++;
if (item.status == ItemStatus.Registered) accepted++;
if (item.status == ItemStatus.Cleared) rejected++;
else if (item.status == ItemStatus.Resubmitted || item.status == ItemStatus.Submitted) pending++;
else if (item.status == ItemStatus.Registered) accepted++;
else if (item.status == ItemStatus.Cleared) rejected++;
}
}

Expand Down

0 comments on commit 2ace35e

Please sign in to comment.