Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
e493fb3e
Commit
e493fb3e
authored
Jan 23, 2020
by
Nicolás Venturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'available since' notes. Fixes #2054
parent
8c40a5b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
ERC721Metadata.sol
contracts/token/ERC721/ERC721Metadata.sol
+2
-0
Create2.sol
contracts/utils/Create2.sol
+2
-0
SafeCast.sol
contracts/utils/SafeCast.sol
+4
-2
No files found.
contracts/token/ERC721/ERC721Metadata.sol
View file @
e493fb3e
...
...
@@ -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;
...
...
contracts/utils/Create2.sol
View file @
e493fb3e
...
...
@@ -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 {
/**
...
...
contracts/utils/SafeCast.sol
View file @
e493fb3e
...
...
@@ -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 {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment