-
-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathnf-token-enumerable-mock.sol
More file actions
43 lines (38 loc) · 808 Bytes
/
nf-token-enumerable-mock.sol
File metadata and controls
43 lines (38 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../contracts/tokens/nf-token-enumerable.sol";
import "../ownership/ownable.sol";
/**
* @dev This is an example contract implementation of NFToken with enumerable extension.
*/
contract NFTokenEnumerableMock is
NFTokenEnumerable,
Ownable
{
/**
* @dev Mints a new NFT.
* @param _to The address that will own the minted NFT.
* @param _tokenId of the NFT to be minted by the msg.sender.
*/
function mint(
address _to,
uint256 _tokenId
)
external
onlyOwner
{
super._mint(_to, _tokenId);
}
/**
* @dev Removes a NFT from owner.
* @param _tokenId Which NFT we want to remove.
*/
function burn(
uint256 _tokenId
)
external
onlyOwner
{
super._burn(_tokenId);
}
}