* Updated code style to 4 spaces and 120 max characters per line. * Update contracts/token/ERC721/ERC721Pausable.sol Co-Authored-By: nventuro <nicolas.venturo@gmail.com> * Update contracts/token/ERC721/IERC721.sol Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
22 lines
578 B
Solidity
22 lines
578 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "./ERC721.sol";
|
|
import "../../access/roles/MinterRole.sol";
|
|
|
|
/**
|
|
* @title ERC721Mintable
|
|
* @dev ERC721 minting logic
|
|
*/
|
|
contract ERC721Mintable is ERC721, MinterRole {
|
|
/**
|
|
* @dev Function to mint tokens
|
|
* @param to The address that will receive the minted tokens.
|
|
* @param tokenId The token id to mint.
|
|
* @return A boolean that indicates if the operation was successful.
|
|
*/
|
|
function mint(address to, uint256 tokenId) public onlyMinter returns (bool) {
|
|
_mint(to, tokenId);
|
|
return true;
|
|
}
|
|
}
|