Skip to content

Commit

Permalink
initialize initialSupplyOwner addressData so skipNFT flag does not ch…
Browse files Browse the repository at this point in the history
…ange on first transfer
  • Loading branch information
0xth0mas committed Feb 11, 2024
1 parent 32b67b8 commit 38bdbb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DN404.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ abstract contract DN404 {
if (initialTokenSupply / _WAD > _MAX_TOKEN_ID - 1) revert InvalidTotalNFTSupply();

$.totalTokenSupply = initialTokenSupply;
$.addressData[initialSupplyOwner].balance = initialTokenSupply;
AddressData storage initialOwnerAddressData = _addressData(initialSupplyOwner);
initialOwnerAddressData.balance = initialTokenSupply;

emit Transfer(address(0), initialSupplyOwner, initialTokenSupply);

Expand Down

0 comments on commit 38bdbb9

Please sign in to comment.