Skip to content

Commit

Permalink
⚡️ Small change for gas optimization (Vectorized#45)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeongun Baek <[email protected]>
  • Loading branch information
hooki and blackcow1987 authored Feb 13, 2024
1 parent 2bfa5f7 commit 658df05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DN404.sol
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ abstract contract DN404 {
_PackedLogs memory packedLogs = _packedLogsMalloc(_zeroFloorSub(toEnd, toIndex));

if (packedLogs.logs.length != 0) {
uint256 maxNFTId = $.totalSupply / _WAD;
uint256 maxNFTId = currentTokenSupply / _WAD;
uint32 toAlias = _registerAndResolveAlias(toAddressData, to);
uint256 id = $.nextTokenId;
$.totalNFTSupply += uint32(packedLogs.logs.length);
Expand Down

0 comments on commit 658df05

Please sign in to comment.