Removed assertions from Escrow and SplitPayment. (#1349)
This commit is contained in:
committed by
Francisco Giordano
parent
396680b856
commit
db2e1d2c74
@ -39,7 +39,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;
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,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