File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
13
13
14
14
/// @dev EOA with rights to allow(add)/disallow(remove) minter.
15
15
address private _minterUpdater;
16
+ /// @dev The counter to mint new NFTs and track supply.
17
+ uint256 private _tokenIdCounter;
16
18
17
19
/// @dev EOA with minting rights.
18
20
mapping (address => bool ) private _minters;
@@ -96,6 +98,13 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
96
98
return currentId;
97
99
}
98
100
101
+ /**
102
+ * @dev See {IERC721Enumerable-totalSupply}.
103
+ */
104
+ function totalSupply () public view override returns (uint256 ) {
105
+ return _tokenIdCounter;
106
+ }
107
+
99
108
function _tokenURI (uint256 tokenId ) private view returns (string memory ) {
100
109
require (tokenId < currentIndex (), "Token not found " );
101
110
You can’t perform that action at this time.
0 commit comments