Skip to content

Instantly share code, notes, and snippets.

@tshallenberger
Created July 24, 2018 19:07
Show Gist options
  • Save tshallenberger/3794eb3544d3cd8f4c20d0279abbb0d2 to your computer and use it in GitHub Desktop.
Save tshallenberger/3794eb3544d3cd8f4c20d0279abbb0d2 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.23;
import "../node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol";
contract SmartProductLicense is ERC721Token {
constructor (string _name, string _symbol) public
ERC721Token(_name, _symbol)
{
}
/**
* Custom accessor to create a unique token
*/
function mintUniqueTokenTo(
address _to,
uint256 _tokenId,
string _tokenURI,
) public
{
super._mint(_to, _tokenId);
super._setTokenURI(_tokenId, _tokenURI);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment