use __unsafe_increaseBalance to react to batch minting
This commit is contained in:
@ -34,4 +34,8 @@ contract ERC721ConsecutiveEnumerableMock is ERC721Consecutive, ERC721Enumerable
|
||||
) internal virtual override(ERC721Consecutive, ERC721Enumerable) returns (address) {
|
||||
return super._update(to, tokenId, constraints);
|
||||
}
|
||||
|
||||
function __unsafe_increaseBalance(address account, uint256 amount) internal virtual override(ERC721, ERC721Enumerable) {
|
||||
super.__unsafe_increaseBalance(account, amount);
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,6 +46,10 @@ contract ERC721ConsecutiveMock is ERC721Consecutive, ERC721Pausable, ERC721Votes
|
||||
) internal virtual override(ERC721Consecutive, ERC721Pausable, ERC721Votes) returns (address) {
|
||||
return super._update(to, tokenId, constraints);
|
||||
}
|
||||
|
||||
function __unsafe_increaseBalance(address account, uint256 amount) internal virtual override(ERC721, ERC721Votes) {
|
||||
super.__unsafe_increaseBalance(account, amount);
|
||||
}
|
||||
}
|
||||
|
||||
contract ERC721ConsecutiveNoConstructorMintMock is ERC721Consecutive {
|
||||
|
||||
Reference in New Issue
Block a user