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.
43 lines
712 B
43 lines
712 B
7 years ago
|
pragma solidity ^0.4.24;
|
||
|
|
||
7 years ago
|
import "./ERC721Basic.sol";
|
||
7 years ago
|
import "../../lifecycle/Pausable.sol";
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @title ERC721 Non-Fungible Pausable token
|
||
7 years ago
|
* @dev ERC721Basic modified with pausable transfers.
|
||
7 years ago
|
**/
|
||
7 years ago
|
contract ERC721Pausable is ERC721Basic, Pausable {
|
||
7 years ago
|
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);
|
||
|
}
|
||
|
}
|