Skip to content

Commit

Permalink
Update EIP-6093: Replace ERC1155 approval error
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
ernestognw authored Jul 3, 2023
1 parent 870e33c commit 94d61e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EIPS/eip-6093.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Usage guidelines:
- RECOMMENDED for disallowed transfers from the zero address.
- MUST NOT be used for approval operations.
- MUST NOT be used for balance or allowance requirements.
- Use `ERC1155InsufficientBalance` or `ERC1155InsufficientApprovalForAll` instead.
- Use `ERC1155InsufficientBalance` or `ERC1155MissingApprovalForAll` instead.

#### `ERC1155InvalidReceiver(address receiver)`

Expand All @@ -221,7 +221,7 @@ Usage guidelines:
- RECOMMENDED for disallowed transfers to non-`ERC1155TokenReceiver` contracts or those that reject a transfer. (eg. returning an invalid response in `onERC1155Received`).
- MUST NOT be used for approval operations.

#### `ERC1155InsufficientApprovalForAll(address operator, address owner)`
#### `ERC1155MissingApprovalForAll(address operator, address owner)`

Indicates a failure with the `operator`'s approval in a transfer.
Used in transfers.
Expand Down Expand Up @@ -409,7 +409,7 @@ interface ERC1155Errors {
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
error ERC1155InvalidSender(address sender);
error ERC1155InvalidReceiver(address receiver);
error ERC1155InsufficientApprovalForAll(address operator, address owner)
error ERC1155MissingApprovalForAll(address operator, address owner)
error ERC1155InvalidApprover(address approver);
error ERC1155InvalidOperator(address operator);
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
Expand Down

0 comments on commit 94d61e5

Please sign in to comment.