Add 'available since' notes. Fixes #2054

This commit is contained in:
Nicolás Venturo
2020-01-23 15:26:25 -03:00
parent 8c40a5b275
commit e493fb3e95
3 changed files with 8 additions and 2 deletions

View File

@ -80,6 +80,8 @@ contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a preffix in {tokenURI} to each token's URI, when
* they are non-empty.
*
* _Available since v2.5.0._
*/
function baseURI() external view returns (string memory) {
return _baseURI;

View File

@ -8,6 +8,8 @@ pragma solidity ^0.5.0;
*
* See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
* information.
*
* _Available since v2.5.0._
*/
library Create2 {
/**

View File

@ -5,9 +5,9 @@ pragma solidity ^0.5.0;
* @dev Wrappers over Solidity's uintXX casting operators with added overflow
* checks.
*
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* Downcasting from uint256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this intuition by
* assume that overflows raise errors. `SafeCast` restores this intuition by
* reverting the transaction when such an operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
@ -15,6 +15,8 @@ pragma solidity ^0.5.0;
*
* Can be combined with {SafeMath} to extend it to smaller types, by performing
* all math on `uint256` and then downcasting.
*
* _Available since v2.5.0._
*/
library SafeCast {