You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
476 B
16 lines
476 B
pragma solidity ^0.6.0;
|
|
|
|
import "./ERC721.sol";
|
|
import "../../utils/Pausable.sol";
|
|
|
|
/**
|
|
* @title ERC721 Non-Fungible Pausable token
|
|
* @dev ERC721 modified with pausable transfers.
|
|
*/
|
|
contract ERC721Pausable is ERC721, Pausable {
|
|
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
|
|
super._beforeTokenTransfer(from, to, tokenId);
|
|
|
|
require(!paused(), "ERC721Pausable: token transfer while paused");
|
|
}
|
|
}
|
|
|