|
|
@ -52,7 +52,7 @@ abstract contract Proxy { |
|
|
|
* This function does not return to its internall call site, it will return directly to the external caller. |
|
|
|
* This function does not return to its internall call site, it will return directly to the external caller. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function _fallback() internal { |
|
|
|
function _fallback() internal { |
|
|
|
_willFallback(); |
|
|
|
_beforeFallback(); |
|
|
|
_delegate(_implementation()); |
|
|
|
_delegate(_implementation()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -76,8 +76,8 @@ abstract contract Proxy { |
|
|
|
* @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. |
|
|
|
* |
|
|
|
* |
|
|
|
* If overriden should call `super._willFallback()`. |
|
|
|
* If overriden should call `super._beforeFallback()`. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function _willFallback() internal virtual { |
|
|
|
function _beforeFallback() internal virtual { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|