@@ -43,19 +43,15 @@ contract ERC721WithData is Context, Ownable, ERC721, IERC721WithData {
4343 _tokenIdCounter.increment ();
4444 }
4545
46- function supportsInterface (bytes4 interfaceId )
47- public
48- view
49- virtual
50- override (ERC721 , IERC165 )
51- returns (bool )
52- {
46+ function supportsInterface (
47+ bytes4 interfaceId
48+ ) public view virtual override (ERC721 , IERC165 ) returns (bool ) {
5349 return
5450 interfaceId == type (IERC721WithData ).interfaceId ||
5551 super .supportsInterface (interfaceId);
5652 }
5753
58- function mintWithData (address to , bytes calldata data ) external override onlyOwner {
54+ function mintWithData (address to , bytes calldata data ) public virtual onlyOwner {
5955 uint256 tokenId = _tokenIdCounter.current ();
6056 _tokenIdCounter.increment ();
6157 _safeMint (to, tokenId, data);
@@ -66,7 +62,7 @@ contract ERC721WithData is Context, Ownable, ERC721, IERC721WithData {
6662 address to ,
6763 bytes calldata data ,
6864 string memory tokenURI_
69- ) external override onlyOwner {
65+ ) public virtual onlyOwner {
7066 uint256 tokenId = _tokenIdCounter.current ();
7167 _tokenIdCounter.increment ();
7268 _safeMint (to, tokenId, data);
@@ -85,32 +81,24 @@ contract ERC721WithData is Context, Ownable, ERC721, IERC721WithData {
8581 address to ,
8682 uint256 tokenId ,
8783 bytes calldata data
88- ) external override {
84+ ) public virtual {
8985 safeTransferFrom (from, to, tokenId, data);
9086 }
9187
92- function burnWithData (
93- address from ,
94- uint256 tokenId ,
95- bytes calldata data
96- ) external override {
88+ function burnWithData (address from , uint256 tokenId , bytes calldata data ) public virtual {
9789 require (from == _msgSender (), 'ERC721WithData: caller is not owner ' );
9890 _burn (tokenId);
9991 }
10092
101- function approveWithData (
102- address to ,
103- uint256 tokenId ,
104- bytes calldata data
105- ) external override {
93+ function approveWithData (address to , uint256 tokenId , bytes calldata data ) public virtual {
10694 approve (to, tokenId);
10795 }
10896
10997 function setApprovalForAllWithData (
11098 address operator ,
11199 bool approved ,
112100 bytes calldata data
113- ) external override {
101+ ) public virtual {
114102 setApprovalForAll (operator, approved);
115103 }
116104
0 commit comments