Removed assertions from Escrow and SplitPayment. (#1349)
(cherry picked from commit db2e1d2c74)
This commit is contained in:
committed by
Francisco Giordano
parent
c9e8a66e85
commit
652243b7c3
@ -40,7 +40,6 @@ contract Escrow is Secondary {
|
|||||||
*/
|
*/
|
||||||
function withdraw(address payee) public onlyPrimary {
|
function withdraw(address payee) public onlyPrimary {
|
||||||
uint256 payment = _deposits[payee];
|
uint256 payment = _deposits[payee];
|
||||||
assert(address(this).balance >= payment);
|
|
||||||
|
|
||||||
_deposits[payee] = 0;
|
_deposits[payee] = 0;
|
||||||
|
|
||||||
|
|||||||
@ -85,7 +85,6 @@ contract SplitPayment {
|
|||||||
);
|
);
|
||||||
|
|
||||||
require(payment != 0);
|
require(payment != 0);
|
||||||
assert(address(this).balance >= payment);
|
|
||||||
|
|
||||||
_released[account] = _released[account].add(payment);
|
_released[account] = _released[account].add(payment);
|
||||||
_totalReleased = _totalReleased.add(payment);
|
_totalReleased = _totalReleased.add(payment);
|
||||||
|
|||||||
Reference in New Issue
Block a user