use __unsafe_increaseBalance to react to batch minting

This commit is contained in:
Hadrien Croubois
2023-06-21 17:56:00 +02:00
parent a3526acdf2
commit 1ed8f9ef2c
6 changed files with 29 additions and 12 deletions

View File

@ -456,7 +456,7 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er
* that `ownerOf(tokenId)` is `a`.
*/
// solhint-disable-next-line func-name-mixedcase
function __unsafe_increaseBalance(address account, uint256 amount) internal {
function __unsafe_increaseBalance(address account, uint256 amount) internal virtual {
_balances[account] += amount;
}
}