Update docs
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/Proxy.sol)
|
||||
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
@ -45,7 +45,7 @@ abstract contract Proxy {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
|
||||
* @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
|
||||
* and {_fallback} should delegate.
|
||||
*/
|
||||
function _implementation() internal view virtual returns (address);
|
||||
@ -53,7 +53,7 @@ abstract contract Proxy {
|
||||
/**
|
||||
* @dev Delegates the current call to the address returned by `_implementation()`.
|
||||
*
|
||||
* 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 internal call site, it will return directly to the external caller.
|
||||
*/
|
||||
function _fallback() internal virtual {
|
||||
_beforeFallback();
|
||||
@ -80,7 +80,7 @@ abstract contract Proxy {
|
||||
* @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 overriden should call `super._beforeFallback()`.
|
||||
* If overridden should call `super._beforeFallback()`.
|
||||
*/
|
||||
function _beforeFallback() internal virtual {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user