From 31ebb2e0e77a20b2a6a596c2289b7b4f3381d67f Mon Sep 17 00:00:00 2001 From: lalanza808 Date: Thu, 23 Dec 2021 01:35:57 -0800 Subject: [PATCH] setup ability for each wallet to specify their address on file (#1) * setup ability for each wallet to specify their address on file * fix --- contracts/SuchwowX.sol | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contracts/SuchwowX.sol b/contracts/SuchwowX.sol index f7d1374..7ba9088 100644 --- a/contracts/SuchwowX.sol +++ b/contracts/SuchwowX.sol @@ -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.");