add mintable erc721 token
This commit is contained in:
18
contracts/token/ERC721/MintableERC721Token.sol
Normal file
18
contracts/token/ERC721/MintableERC721Token.sol
Normal file
@ -0,0 +1,18 @@
|
||||
pragma solidity ^0.4.21;
|
||||
|
||||
import "./ERC721Token.sol";
|
||||
import "../../ownership/Ownable.sol";
|
||||
|
||||
/**
|
||||
* @title Mintable ERC721 Token
|
||||
*/
|
||||
contract MintableERC721Token is Migratable, Ownable, ERC721Token {
|
||||
function initialize(address _sender, string _name, string _symbol) isInitializer("MintableERC721Token", "0") {
|
||||
Ownable.initialize(_sender);
|
||||
ERC721Token.initialize(_sender, _name, _symbol);
|
||||
}
|
||||
|
||||
function mint(address _to, uint256 _tokenId) onlyOwner public {
|
||||
_mint(_to, _tokenId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user