From e4b0e725df539ccbd122c2419d6fb5798ac44528 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Wed, 12 Jul 2023 16:56:07 +0200 Subject: [PATCH] use whenNotPaused in ERC721Pausable --- contracts/token/ERC721/extensions/ERC721Pausable.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/token/ERC721/extensions/ERC721Pausable.sol b/contracts/token/ERC721/extensions/ERC721Pausable.sol index 4f2f0bb4d..0820cf183 100644 --- a/contracts/token/ERC721/extensions/ERC721Pausable.sol +++ b/contracts/token/ERC721/extensions/ERC721Pausable.sol @@ -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); } }