Skip to content

Commit 2a24a3c

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
DropERC1155: remove burn, keep burnBatch
1 parent ba8f32b commit 2a24a3c

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

contracts/drop/DropERC1155.sol

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -326,20 +326,6 @@ contract DropERC1155 is
326326
return nextTokenIdToLazyMint;
327327
}
328328

329-
/// @dev Lets a token owner burn the tokens they own (i.e. destroy for good)
330-
function burn(
331-
address account,
332-
uint256 id,
333-
uint256 value
334-
) public virtual {
335-
require(
336-
account == _msgSender() || isApprovedForAll(account, _msgSender()),
337-
"ERC1155: caller is not owner nor approved."
338-
);
339-
340-
_burn(account, id, value);
341-
}
342-
343329
/// @dev Lets a token owner burn multiple tokens they own at once (i.e. destroy for good)
344330
function burnBatch(
345331
address account,

docs/DropERC1155.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,6 @@ function balanceOfBatch(address[] accounts, uint256[] ids) external view returns
7373
|---|---|---|
7474
| _0 | uint256[] | undefined |
7575

76-
### burn
77-
78-
```solidity
79-
function burn(address account, uint256 id, uint256 value) external nonpayable
80-
```
81-
82-
83-
84-
*Lets a token owner burn the tokens they own (i.e. destroy for good)*
85-
86-
#### Parameters
87-
88-
| Name | Type | Description |
89-
|---|---|---|
90-
| account | address | undefined |
91-
| id | uint256 | undefined |
92-
| value | uint256 | undefined |
93-
9476
### burnBatch
9577

9678
```solidity

0 commit comments

Comments
 (0)