From 4b078b3557f3540c61fd33f4d743221063702872 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Fri, 7 Jul 2023 11:41:36 +0200 Subject: [PATCH 1/2] Remove superfluous receive() function from Proxy.sol --- contracts/proxy/Proxy.sol | 8 -------- 1 file changed, 8 deletions(-) diff --git a/contracts/proxy/Proxy.sol b/contracts/proxy/Proxy.sol index c2875aeac66..8c8925b9b45 100644 --- a/contracts/proxy/Proxy.sol +++ b/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. From 17150278e7af09b106135625b7b657568be91956 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Fri, 7 Jul 2023 21:54:08 -0300 Subject: [PATCH 2/2] add changeset --- .changeset/eight-peaches-guess.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/eight-peaches-guess.md diff --git a/.changeset/eight-peaches-guess.md b/.changeset/eight-peaches-guess.md new file mode 100644 index 00000000000..ba4e87c179a --- /dev/null +++ b/.changeset/eight-peaches-guess.md @@ -0,0 +1,5 @@ +--- +'openzeppelin-solidity': minor +--- + +`Proxy`: Removed redundant `receive` function.