Open hats-bug-reporter[bot] opened 1 week ago
Github username: @Jelev123 Twitter username: zhulien_zhelev Submission hash (on-chain): 0x6bca9f93654b036c074e839be164d669ff25c487a48279c857464cd88693c763 Severity: low
Description: Description\ In _removeTokenFromOwnerEnumeration function has wrong calculation of lastTokenIndex
lastTokenIndex
uint256 lastTokenIndex = balanceOf(from);
Recommendation The calculation should be
uint256 lastTokenIndex = balanceOf(from) - 1;
Non-issue, Implementation is correct and its taken from Openzeppelin
Oh, damn i didn`t see that, Tnx
Github username: @Jelev123 Twitter username: zhulien_zhelev Submission hash (on-chain): 0x6bca9f93654b036c074e839be164d669ff25c487a48279c857464cd88693c763 Severity: low
Description: Description\ In _removeTokenFromOwnerEnumeration function has wrong calculation of
lastTokenIndex
Recommendation The calculation should be