Commit 652243b7 by Nicolás Venturo Committed by Francisco Giordano

Removed assertions from Escrow and SplitPayment. (#1349)


(cherry picked from commit db2e1d2c)
parent c9e8a66e
...@@ -40,7 +40,6 @@ contract Escrow is Secondary { ...@@ -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 { ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment