could anyone explain those two lines?

using Counters for Counters.Counter;
Counters.Counter private _tokenIds;

I know that "using...for" is used to interact with a library, but I thought that the term after for should be a data type term (such as uint)

Nov 4, 2021, 7:45 PM
I also didn't understand what Counters.Counter private _tokenIds; means, it looks like it is declaring a private variable called _tokenIds, but I don't know why it used Counters.Counter before private term
Nov 4, 2021, 7:46 PM

© 2024 Draquery.com All rights reserved.