You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
601 B
25 lines
601 B
6 years ago
|
pragma solidity ^0.5.2;
|
||
7 years ago
|
|
||
7 years ago
|
import "../../token/ERC20/IERC20.sol";
|
||
7 years ago
|
|
||
|
/**
|
||
|
* @title ERC-1047 Token Metadata
|
||
|
* @dev See https://eips.ethereum.org/EIPS/eip-1046
|
||
|
* @dev tokenURI must respond with a URI that implements https://eips.ethereum.org/EIPS/eip-1047
|
||
|
*/
|
||
6 years ago
|
contract ERC20Metadata {
|
||
6 years ago
|
string private _tokenURI;
|
||
7 years ago
|
|
||
6 years ago
|
constructor (string memory tokenURI_) public {
|
||
|
_setTokenURI(tokenURI_);
|
||
6 years ago
|
}
|
||
7 years ago
|
|
||
6 years ago
|
function tokenURI() external view returns (string memory) {
|
||
6 years ago
|
return _tokenURI;
|
||
|
}
|
||
6 years ago
|
|
||
|
function _setTokenURI(string memory tokenURI_) internal {
|
||
|
_tokenURI = tokenURI_;
|
||
|
}
|
||
7 years ago
|
}
|