* Change import path from zos-lib to upgrades in all contracts * Update readme with new naming * Update package and deps names * Change path to initializable in AST of networks.jsons * Migrate manifest version * Use new oz file locations * Rename in ERC20Migrator comments * Update SDK install instructions in README * Update gitignore to use new session file name * trigger CI * Fixes to readme and package version * Use 2.5.0 release of OpenZeppelin SDK
22 lines
563 B
Solidity
22 lines
563 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "@openzeppelin/upgrades/contracts/Initializable.sol";
|
|
import "./ERC721.sol";
|
|
|
|
/**
|
|
* @title ERC721 Burnable Token
|
|
* @dev ERC721 Token that can be irreversibly burned (destroyed).
|
|
*/
|
|
contract ERC721Burnable is Initializable, ERC721 {
|
|
/**
|
|
* @dev Burns a specific ERC721 token.
|
|
* @param tokenId uint256 id of the ERC721 token to be burned.
|
|
*/
|
|
function burn(uint256 tokenId) public {
|
|
require(_isApprovedOrOwner(msg.sender, tokenId));
|
|
_burn(tokenId);
|
|
}
|
|
|
|
uint256[50] private ______gap;
|
|
}
|