Closed RohanNero closed 1 year ago
Thanks! "Correct" is in the eye of the beholder here. Perhaps the devs wanted to emit an event with the new token counter and not the token Id of the newly minted NFT?
However... You're probably right, but to keep the code as close to the video as possible I'm going to close for now.
Thank you for this PR though! And thanks for contributing!
Ok I understand, thank you!
For the
CreatedNFT
event toemit
the correct value, it needed to be decremented by 1 inside theemit
or thes_tokenCounter
needed to be incremented after theemit
.This PR fixes it by using the first method.