Commit 068b86c4 by github-actions

Merge upstream openzeppelin-contracts into upstream-patched

parents 943b3e37 1dc4a319
...@@ -367,8 +367,7 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { ...@@ -367,8 +367,7 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
* transferred to `to`. * transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`. * - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned. * - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address. * - `from` and `to` are never both zero.
* - `to` cannot be the zero address.
* *
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/ */
......
...@@ -36,8 +36,7 @@ contract Escrow is Ownable { ...@@ -36,8 +36,7 @@ contract Escrow is Ownable {
*/ */
function deposit(address payee) public payable virtual onlyOwner { function deposit(address payee) public payable virtual onlyOwner {
uint256 amount = msg.value; uint256 amount = msg.value;
_deposits[payee] = _deposits[payee] + amount; _deposits[payee] += amount;
emit Deposited(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