* Bump required compiler version to 0.5.2. * Fix shadowed variable warning in ERC20Migrator. * Rename Counter to Counters. * Add dummy state variable to SafeERC20Helper. * Update changelog entry. * Fix CountersImpl name. * Improve changelog entry.
25 lines
629 B
Solidity
25 lines
629 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
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 ERC20TokenMetadata is IERC20 {
|
|
function tokenURI() external view returns (string memory);
|
|
}
|
|
|
|
contract ERC20WithMetadata is ERC20TokenMetadata {
|
|
string private _tokenURI;
|
|
|
|
constructor (string memory tokenURI) public {
|
|
_tokenURI = tokenURI;
|
|
}
|
|
|
|
function tokenURI() external view returns (string memory) {
|
|
return _tokenURI;
|
|
}
|
|
}
|