Skip to content

Commit 6d74b91

Browse files
Amxxfrangio
andauthored
Remove superfluous receive() function from Proxy.sol (#4434)
Co-authored-by: Francisco Giordano <fg@frang.io>
1 parent f5bf723 commit 6d74b91

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.changeset/eight-peaches-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openzeppelin-solidity': minor
3+
---
4+
5+
`Proxy`: Removed redundant `receive` function.

contracts/proxy/Proxy.sol

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ abstract contract Proxy {
6868
_fallback();
6969
}
7070

71-
/**
72-
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
73-
* is empty.
74-
*/
75-
receive() external payable virtual {
76-
_fallback();
77-
}
78-
7971
/**
8072
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
8173
* call, or as part of the Solidity `fallback` or `receive` functions.

0 commit comments

Comments
 (0)