Skip to content

Commit

Permalink
Remove superfluous receive() function from Proxy.sol (#4434)
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Giordano <fg@frang.io>
  • Loading branch information
Amxx and frangio authored Jul 8, 2023
1 parent f5bf723 commit 6d74b91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-peaches-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openzeppelin-solidity': minor
---

`Proxy`: Removed redundant `receive` function.
8 changes: 0 additions & 8 deletions contracts/proxy/Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6d74b91

Please sign in to comment.