Skip to content

Commit

Permalink
Reset balance after execution and remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clesaege committed Oct 9, 2018
1 parent 180cb49 commit b35efc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1,970 deletions.
4 changes: 2 additions & 2 deletions contracts/standard/permission/ArbitrablePermissionList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ contract ArbitrablePermissionList is PermissionInterface, Arbitrable {
uint lastAction; // Time of the last action.
address submitter; // Address of the submitter of the item status change request, if any.
address challenger; // Address of the challenger, if any.
// The total amount of funds to be given to the winner of a potential dispute. Includes stake and reimbursement of arbitration fees.
uint balance;
uint balance; // The total amount of funds to be given to the winner of a potential dispute. Includes stake and reimbursement of arbitration fees.
bool disputed; // True if a dispute is taking place.
uint disputeID; // ID of the dispute, if any.
}
Expand Down Expand Up @@ -262,6 +261,7 @@ contract ArbitrablePermissionList is PermissionInterface, Arbitrable {
revert("Item in wrong status for executing request.");

item.submitter.send(item.balance); // Deliberate use of send in order to not block the contract in case of reverting fallback.
item.balance = 0;

emit ItemStatusChange(item.submitter, item.challenger, _value, item.status, item.disputed);
}
Expand Down
Loading

0 comments on commit b35efc0

Please sign in to comment.