add Available since 4.1 comments

(cherry picked from commit 9a698e6b7b)
This commit is contained in:
Hadrien Croubois
2021-04-19 20:55:16 +02:00
parent 915109b2c4
commit df7996b671
13 changed files with 24 additions and 2 deletions

View File

@ -9,6 +9,8 @@ import "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides setters and getters for the different
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] storage slots.
*
* _Available since v4.1._
*/
abstract contract ERC1967Storage {
/**

View File

@ -8,6 +8,8 @@ import "./ERC1967Storage.sol";
* @dev This abstract contract provides event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*
* @custom:oz-upgrades-unsafe-allow delegatecall
*/
abstract contract ERC1967Upgrade is ERC1967Storage {

View File

@ -10,6 +10,8 @@ import "../ERC1967/ERC1967Upgrade.sol";
* continuation of the upgradability.
*
* The {_authorizeUpgrade} function MUST be overridden to include access restriction to the upgrade mechanism.
*
* _Available since v4.1._
*/
abstract contract UUPSUpgradeable is ERC1967Upgrade {
function upgradeTo(address newImplementation) external virtual {