Implement recommendations from 5.0 audit Phase 1B (#4502)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: Francisco Giordano <fg@frang.io>
This commit is contained in:
@ -56,7 +56,6 @@ abstract contract Proxy {
|
||||
* This function does not return to its internal call site, it will return directly to the external caller.
|
||||
*/
|
||||
function _fallback() internal virtual {
|
||||
_beforeFallback();
|
||||
_delegate(_implementation());
|
||||
}
|
||||
|
||||
@ -67,12 +66,4 @@ abstract contract Proxy {
|
||||
fallback() 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.
|
||||
*
|
||||
* If overridden should call `super._beforeFallback()`.
|
||||
*/
|
||||
function _beforeFallback() internal virtual {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user