Skip to content

Commit e7a12d2

Browse files
author
Yash Agrawal
committed
feat: add logic to start tokens from 1
1 parent 7bf26b4 commit e7a12d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contracts/SBT.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
9191
address to,
9292
bytes memory metadata
9393
) external override onlyMinter returns (uint256 tokenId_) {
94+
unchecked {
95+
_tokenIdCounter++;
96+
}
9497
uint256 currentId = currentIndex();
9598
_mint(to, currentId);
9699
emit Minted(currentId, to);

0 commit comments

Comments
 (0)