Browse Source

Remove superfluous receive() function from Proxy.sol (#4434)

Co-authored-by: Francisco Giordano <fg@frang.io>
Hadrien Croubois 2 years ago
parent
commit
6d74b91388
2 changed files with 5 additions and 8 deletions
  1. 5 0
      .changeset/eight-peaches-guess.md
  2. 0 8
      contracts/proxy/Proxy.sol

+ 5 - 0
.changeset/eight-peaches-guess.md

@@ -0,0 +1,5 @@
+---
+'openzeppelin-solidity': minor
+---
+
+`Proxy`: Removed redundant `receive` function.

+ 0 - 8
contracts/proxy/Proxy.sol

@@ -68,14 +68,6 @@ abstract contract Proxy {
         _fallback();
     }
 
-    /**
-     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
-     * is empty.
-     */
-    receive() external payable virtual {
-        _fallback();
-    }
-
     /**
      * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
      * call, or as part of the Solidity `fallback` or `receive` functions.