* Bump required compiler version to 0.5.2. * Fix shadowed variable warning in ERC20Migrator. * Rename Counter to Counters. * Add dummy state variable to SafeERC20Helper. * Update changelog entry. * Fix CountersImpl name. * Improve changelog entry.
19 lines
451 B
Solidity
19 lines
451 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "./ERC721.sol";
|
|
|
|
/**
|
|
* @title ERC721 Burnable Token
|
|
* @dev ERC721 Token that can be irreversibly burned (destroyed).
|
|
*/
|
|
contract ERC721Burnable is 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);
|
|
}
|
|
}
|