Skip to content

Commit a44844a

Browse files
authored
Update index.md
Revise copy and formatting for clarity.
1 parent e4aaae1 commit a44844a

File tree

1 file changed

+4
-4
lines changed
  • src/content/developers/docs/standards/tokens/erc-1155

1 file changed

+4
-4
lines changed

src/content/developers/docs/standards/tokens/erc-1155/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A standard interface for contracts that manage multiple token types. A single de
1010

1111
**What is meant by Multi-Token Standard?**
1212

13-
The idea is simple and seeks to create a smart contract interface that can represent and control any number of fungible and non-fungible token types. In this way, the ERC-1155 token can do the same functions as an [ERC-20](/developers/docs/standards/tokens/erc-20/) and [ERC-721](/developers/docs/standards/tokens/erc-721/) token, and even both at the same time. And best of all, improving the functionality of both standards, making it more efficient, and correcting obvious implementation errors on the ERC-20 and ERC-721 standards.
13+
The idea is simple and seeks to create a smart contract interface that can represent and control any number of fungible and non-fungible token types. In this way, the ERC-1155 token can do the same functions as an [ERC-20](/developers/docs/standards/tokens/erc-20/) and [ERC-721](/developers/docs/standards/tokens/erc-721/) token, and even both at the same time. Moreoever, it improves the functionality of both the ERC-20 and ERC-721 standards, making it more efficient and correcting obvious implementation errors.
1414

1515
The ERC-1155 token is described fully in [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155).
1616

@@ -29,7 +29,7 @@ To better understand this page, we recommend you first read about [token standar
2929

3030
### Batch Transfers {#batch-transfers}
3131

32-
The batch transfer works very similar to regular ERC-20 transfers. Let's look at the regular ERC-20 transferFrom function:
32+
The batch transfer works very similar to regular ERC-20 transfers. Let's look at the regular ERC-20 `transferFrom` function:
3333

3434
```solidity
3535
// ERC-20
@@ -45,7 +45,7 @@ function safeBatchTransferFrom(
4545
) external;
4646
```
4747

48-
The only difference in ERC-1155 is that we pass the values as an array and we also pass an array of id's. For example given `ids=[3, 6, 13]` and `values=[100, 200, 5]`, the resulting transfers will be
48+
The only difference in ERC-1155 is that we pass the values as an array and we also pass an array of ids. For example given `ids=[3, 6, 13]` and `values=[100, 200, 5]`, the resulting transfers will be
4949

5050
1. Transfer 100 tokens with id 3 from `_from` to `_to`.
5151
2. Transfer 200 tokens with id 6 from `_from` to `_to`.
@@ -97,7 +97,7 @@ function isApprovedForAll(
9797

9898
The approvals are slightly different than ERC-20. Instead of approving specific amounts, you set an operator to approved or not approved via `setApprovalForAll`.
9999

100-
Reading the current status can be done via `isApprovedForAll`. As you can see, it's an all or nothing. You cannot define how many tokens to approve or even which token class.
100+
Reading the current status can be done via `isApprovedForAll`. As you can see, it's an all-or-nothing operation. You cannot define how many tokens to approve or even which token class.
101101

102102
This is intentionally designed with simplicity in mind. You can only approve everything for one address.
103103

0 commit comments

Comments
 (0)