use whenNotPaused in ERC721Pausable

This commit is contained in:
Hadrien Croubois
2023-07-12 16:56:07 +02:00
parent b973d985a4
commit e4b0e725df

View File

@ -27,8 +27,7 @@ abstract contract ERC721Pausable is ERC721, Pausable {
*
* - the contract must not be paused.
*/
function _update(address to, uint256 tokenId, address operatorCheck) internal virtual override returns (address) {
_requireNotPaused();
function _update(address to, uint256 tokenId, address operatorCheck) internal virtual override whenNotPaused returns (address) {
return super._update(to, tokenId, operatorCheck);
}
}