|
|
|
@ -21,6 +21,7 @@ contract SuchwowX is ERC721, ERC721URIStorage, Ownable {
|
|
|
|
|
mapping (address => uint256) public creatorTokensMinted;
|
|
|
|
|
mapping (address => uint256) public tipperTips;
|
|
|
|
|
mapping (string => uint256) public metadataTokenId;
|
|
|
|
|
mapping (address => string) public creatorWowneroAddress;
|
|
|
|
|
|
|
|
|
|
// Define starting contract state
|
|
|
|
|
string public contractCreator = "lzamenace.eth";
|
|
|
|
@ -39,6 +40,12 @@ contract SuchwowX is ERC721, ERC721URIStorage, Ownable {
|
|
|
|
|
return _tokenSupply.current();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Specify new Wownero address
|
|
|
|
|
function set_wownero_address(string memory wowneroAddress) external {
|
|
|
|
|
require(bytes(wowneroAddress).length > 0, "Wownero address must be provided.");
|
|
|
|
|
creatorWowneroAddress[msg.sender] = wowneroAddress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Mint a new token with a specific metadata hash location
|
|
|
|
|
function mint(string memory metadataIPFSHash) external {
|
|
|
|
|
require(bytes(metadataIPFSHash).length > 0, "Metadata IPFS hash cannot be empty.");
|
|
|
|
|