Przeglądaj źródła

Removed assertions from Escrow and SplitPayment. (#1349)

Nicolás Venturo 7 lat temu
rodzic
commit
db2e1d2c74

+ 0 - 1
contracts/payment/Escrow.sol

@@ -39,7 +39,6 @@ contract Escrow is Secondary {
   */
   function withdraw(address payee) public onlyPrimary {
     uint256 payment = _deposits[payee];
-    assert(address(this).balance >= payment);
 
     _deposits[payee] = 0;
 

+ 0 - 1
contracts/payment/SplitPayment.sol

@@ -84,7 +84,6 @@ contract SplitPayment {
     );
 
     require(payment != 0);
-    assert(address(this).balance >= payment);
 
     _released[account] = _released[account].add(payment);
     _totalReleased = _totalReleased.add(payment);