ShenaniganDApp / shenanigan-monorepo

17 stars 4 forks source link

Mint NFTs for each Challenge created #58

Closed youngkidwarrior closed 3 years ago

youngkidwarrior commented 4 years ago

Each time a challenge is finished an accompanying NFT should be minted. The amount that is minted can be chosen by the owner.

Fields from the NFT should include: { address to, string memory _challengeUrl }

  1. Check out Nifty Token for guidance writing the ChallengeToken Contract.

  2. Add the token to the ChallengeRegistry.sol. Check Nifty Registry

  3. Add the logic to Challenges.sol to mint a token when the Challenge status is "Succeed" or "Failed" NiftyInk might help