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

Co-authored-by: Francisco Giordano <fg@frang.io>
pull/4437/head
Hadrien Croubois 2 years ago committed by GitHub
parent f5bf7233cb
commit 6d74b91388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .changeset/eight-peaches-guess.md
  2. 8
      contracts/proxy/Proxy.sol

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

@ -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.

Loading…
Cancel
Save