Skip to content

Commit

Permalink
Update docs/modules/ROOT/pages/erc1155.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Fleming <[email protected]>
  • Loading branch information
ericnordelo and andrew-fleming authored Feb 28, 2024
1 parent b3eda68 commit ab89ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/erc1155.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The ERC1155 library implements an approximation of {eip-1155} in Cairo for Stark

:balance_of-api: xref:api/erc1155.adoc#ERC1155-balance_of[balance_of]

The distinctive feature of ERC1155 is that it uses a single smart contract to represent multiple tokens at once. This is why its {balance_of-api} function differs from ERC20’s and ERC777’s: it has an additional id argument for the identifier of the token that you want to query the balance of.
The distinctive feature of ERC1155 is that it uses a single smart contract to represent multiple tokens at once. This is why its {balance_of-api} function differs from ERC20’s and ERC777’s: it has an additional `id` argument for the identifier of the token that you want to query the balance of.

This is similar to how ERC721 does things, but in that standard a token id has no concept of balance: each token is non-fungible and exists or doesn’t. The ERC721 balance_of function refers to how many different tokens an account has, not how many of each. On the other hand, in ERC1155 accounts have a distinct balance for each token id, and non-fungible tokens are implemented by simply minting a single one of them.

Expand Down

0 comments on commit ab89ff3

Please sign in to comment.