* Move Pausable into utils * Move Strings into utils * Move Counters into utils * Move SignedSafeMath into math * Remove ERC1046 * Make ERC20Snapshot.snapshot internal * Move ERC20Snapshot into ERC20 * Add drafts deprecation notice * Remove drafts directory * Add changelog entry * Apply suggestions from code review Co-Authored-By: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
17 lines
476 B
Solidity
17 lines
476 B
Solidity
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");
|
|
}
|
|
}
|