Remove superfluous receive() function from Proxy.sol (#4434)
Co-authored-by: Francisco Giordano <fg@frang.io>
This commit is contained in:
5
.changeset/eight-peaches-guess.md
Normal file
5
.changeset/eight-peaches-guess.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'openzeppelin-solidity': minor
|
||||||
|
---
|
||||||
|
|
||||||
|
`Proxy`: Removed redundant `receive` function.
|
||||||
@ -68,14 +68,6 @@ abstract contract Proxy {
|
|||||||
_fallback();
|
_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`
|
* @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.
|
* call, or as part of the Solidity `fallback` or `receive` functions.
|
||||||
|
|||||||
Reference in New Issue
Block a user