setup ability for each wallet to specify their address on file (#1)

* setup ability for each wallet to specify their address on file

* fix
main
lalanza808 3 years ago committed by GitHub
parent 0de576be69
commit 31ebb2e0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save