From 1dc4a319abbfc919ab42d9579ce87ac923104d36 Mon Sep 17 00:00:00 2001 From: Manik Jain Date: Tue, 4 May 2021 16:04:51 -0400 Subject: [PATCH] Use shorter syntax for Escrow addition (#2646) --- contracts/utils/escrow/Escrow.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/utils/escrow/Escrow.sol b/contracts/utils/escrow/Escrow.sol index 6f236b189..9f4128896 100644 --- a/contracts/utils/escrow/Escrow.sol +++ b/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); }