* ERC721 pausable token * Reuse of ERC721 Basic behavior for Pausable, split view checks in paused state & style fixes * [~] paused token behavior
43 lines
732 B
Solidity
43 lines
732 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "./ERC721BasicToken.sol";
|
|
import "../../lifecycle/Pausable.sol";
|
|
|
|
|
|
/**
|
|
* @title ERC721 Non-Fungible Pausable token
|
|
* @dev ERC721BasicToken modified with pausable transfers.
|
|
**/
|
|
contract ERC721PausableToken is ERC721BasicToken, 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);
|
|
}
|
|
}
|