Closed 0xInuarashi closed 2 years ago
The assumption is that, if the packed token data exists, it must already be within-bounds of < _currentIndex
Thus, if the token data exists (and in this case, it is also not burnt), we can save 1 SLOAD by skipping the _currentIndex
and go straight to returning the already-initialized token data.
Holy shit, this is gigabrain.
Good catch
Summary: