Skip to content

Commit

Permalink
Remove implementation detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 authored Oct 25, 2022
1 parent 5e807b5 commit 1abdfa9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions EIPS/eip-5615.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface ERC1155Supply is ERC1155 {
function exists(uint256 id) external view returns (bool);
// @notice If the given id exists, previously existed, or may exist, this function MUST return the number of tokens with a given id. Otherwise, this function MUST revert.
// @dev This MUST revert if exists(id) returns false. This function therefore MUST call the exists function.
// @dev This MUST revert if exists(id) returns false
// @param id The token id of which fetch the total supply
// @return The total supply of the given token id
function totalSupply(uint256 id) external view returns (uint256);
Expand All @@ -38,8 +38,6 @@ interface ERC1155Supply is ERC1155 {

This EIP does not implement [EIP-165](./eip-165.md), as this interface is simple enough that the extra complexity is unnecessary and would cause incompatibilities with pre-existing implementations.

For extensibility, `totalSupply` is required to call the `exists` function in case a contract extends the base implementation and overrides `exists`.

## Backwards Compatibility

This EIP is designed to be backward compatible with the OpenZeppelin `ERC1155Supply`.
Expand Down

0 comments on commit 1abdfa9

Please sign in to comment.