@@ -31,8 +31,7 @@ library ERC1967Utils {
3131
3232 /**
3333 * @dev Storage slot with the address of the current implementation.
34- * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
35- * validated in the constructor.
34+ * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
3635 */
3736 // solhint-disable-next-line private-vars-leading-underscore
3837 bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc ;
@@ -94,8 +93,7 @@ library ERC1967Utils {
9493
9594 /**
9695 * @dev Storage slot with the admin of the contract.
97- * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
98- * validated in the constructor.
96+ * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
9997 */
10098 // solhint-disable-next-line private-vars-leading-underscore
10199 bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 ;
@@ -133,7 +131,7 @@ library ERC1967Utils {
133131
134132 /**
135133 * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
136- * This is bytes32(uint256(keccak256(' eip1967.proxy.beacon')) - 1) and is validated in the constructor .
134+ * This is the keccak-256 hash of " eip1967.proxy.beacon" subtracted by 1 .
137135 */
138136 // solhint-disable-next-line private-vars-leading-underscore
139137 bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50 ;
@@ -184,7 +182,8 @@ library ERC1967Utils {
184182 }
185183
186184 /**
187- * @dev Reverts if `msg.value` is not zero.
185+ * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
186+ * if an upgrade doesn't perform an initialization call.
188187 */
189188 function _checkNonPayable () private {
190189 if (msg .value > 0 ) {
0 commit comments