chiru-labs/ERC721A

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

Lruquaf opened this issue · 2 comments

struct TokenApprovalRef {
        address value;
}

// Mapping from token ID to approved address.
    mapping(uint256 => TokenApprovalRef) private _tokenApprovals;

This is a workaround for a old compiler bug.

Thanks!