chiru-labs / ERC721A

https://ERC721A.org
MIT License
2.5k stars 839 forks source link

Why is value of `_tokenApprovals` mapping a struct with one parameter instead simply an address? #475

Closed Lruquaf closed 1 year ago

Lruquaf commented 1 year ago
struct TokenApprovalRef {
        address value;
}

// Mapping from token ID to approved address.
    mapping(uint256 => TokenApprovalRef) private _tokenApprovals;
Vectorized commented 1 year ago

This is a workaround for a old compiler bug.

Lruquaf commented 1 year ago

Thanks!