Unverified Commit 1dc4a319 by Manik Jain Committed by GitHub

Use shorter syntax for Escrow addition (#2646)

parent 08ba72af
......@@ -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);
}
......
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