* Change import path from zos-lib to upgrades in all contracts * Update readme with new naming * Update package and deps names * Change path to initializable in AST of networks.jsons * Migrate manifest version * Use new oz file locations * Rename in ERC20Migrator comments * Update SDK install instructions in README * Update gitignore to use new session file name * trigger CI * Fixes to readme and package version * Use 2.5.0 release of OpenZeppelin SDK
28 lines
722 B
Solidity
28 lines
722 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "@openzeppelin/upgrades/contracts/Initializable.sol";
|
|
import "../../token/ERC20/IERC20.sol";
|
|
|
|
/**
|
|
* @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
|
|
*/
|
|
contract ERC20Metadata is Initializable {
|
|
string private _tokenURI;
|
|
|
|
function initialize(string memory tokenURI_) public {
|
|
_setTokenURI(tokenURI_);
|
|
}
|
|
|
|
function tokenURI() external view returns (string memory) {
|
|
return _tokenURI;
|
|
}
|
|
|
|
function _setTokenURI(string memory tokenURI_) internal {
|
|
_tokenURI = tokenURI_;
|
|
}
|
|
|
|
uint256[50] private ______gap;
|
|
}
|