mirror of openzeppelin-contracts
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.
 
 
 
 
 
openzeppelin-contracts/contracts/token/ERC721/ERC721Pausable.sol

42 lines
712 B

pragma solidity ^0.4.24;
import "./ERC721Basic.sol";
import "../../lifecycle/Pausable.sol";
/**
* @title ERC721 Non-Fungible Pausable token
* @dev ERC721Basic modified with pausable transfers.
**/
contract ERC721Pausable is ERC721Basic, Pausable {
function approve(
address _to,
uint256 _tokenId
)
public
whenNotPaused
{
super.approve(_to, _tokenId);
}
function setApprovalForAll(
address _to,
bool _approved
)
public
whenNotPaused
{
super.setApprovalForAll(_to, _approved);
}
function transferFrom(
address _from,
address _to,
uint256 _tokenId
)
public
whenNotPaused
{
super.transferFrom(_from, _to, _tokenId);
}
}