Enumeration
In the previous tutorials, you looked at ways to integrate the minting functionality into a skeleton smart contract. In order to get your NFTs to show in the wallet, you also had to deploy a patch fix that implemented one of the enumeration methods. In this tutorial, you'll expand on and finish the rest of the enumeration methods as per the standard Now you'll extend the NFT smart contract and add a couple of enumeration methods that can be used to return the contract's state.
Introduction
As mentioned in the Upgrade a Contract tutorial, you can deploy patches and fixes to smart contracts. This time, you'll use that knowledge to implement the nft_total_supply, nft_tokens and nft_supply_for_owner enumeration functions.
To get started, either switch to the 2.minting branch from our GitHub repository, or continue your work from the previous tutorials.
If you haven't cloned it yet, refer to the Contract Architecture to check out the repository.
git checkout 2.minting
If you wish to see the finished code for this Enumeration tutorial, you can find it on the 3.enumeration branch.