Use shorter syntax for Escrow addition (#2646)

pull/2660/head
Manik Jain 4 years ago committed by GitHub
parent 08ba72afa2
commit 1dc4a319ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      contracts/utils/escrow/Escrow.sol

@ -36,8 +36,7 @@ contract Escrow is Ownable {
*/
function deposit(address payee) public payable virtual onlyOwner {
uint256 amount = msg.value;
_deposits[payee] = _deposits[payee] + amount;
_deposits[payee] += amount;
emit Deposited(payee, amount);
}

Loading…
Cancel
Save