It’s helpful for users to know how many NFTs are currently available and how many there are total.
This information can be found on the smart contract. In our dApp we can get it off our connectedContract
, stored locally in React state, using the totalTicketCount
and availableTicketCount
methods.
There is no onClick event for the "Buy Ticket" button but in the video it performs an action - why is this?
I'm not too sure either but he does create the onClick
event for the Buy button in the next lesson.