Why do we define the COLLECTION_CREATOR and MINT_FEE_COLLECTOR as manualy in nft-minting template? #519
Replies: 3 comments
-
@Cryptain-Harlock Step 1: Define the Collection Creator Add a mapping to store the creator address for each collection. |
Beta Was this translation helpful? Give feedback.
-
During the minting process, reference the creator stored in the Collection struct and transfer the fee. `public fun mint_nft(
} |
Beta Was this translation helpful? Give feedback.
-
mapping to store the creator address for each collection. `module NFT {
} ` |
Beta Was this translation helpful? Give feedback.
-
In nft minting template, we define above two addresses as manualy in
.env
.Let's assume I defined them as my wallet address and published contract with my wallet private key.
Once other users create collections with there wallet, then all collection's creator will be my wallet account. right?
And next, once
user A
(not me) has created a collection on my contract, anduser B
is minting that collection, then also, all minting fee will go to my wallet.So I want to make creator and minting fee collector as dynamically. Guide me on that template with code please I am a beginner at move.
Beta Was this translation helpful? Give feedback.
All reactions