You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/developers/docs/standards/tokens/erc-1155/index.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ A standard interface for contracts that manage multiple token types. A single de
10
10
11
11
**What is meant by Multi-Token Standard?**
12
12
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. It improves the functionality of both the ERC-20 and ERC-721 standards, making it more efficient and correcting obvious implementation errors.
14
14
15
15
The ERC-1155 token is described fully in [EIP-1155](https://eips.ethereum.org/EIPS/eip-1155).
16
16
@@ -29,7 +29,7 @@ To better understand this page, we recommend you first read about [token standar
29
29
30
30
### Batch Transfers {#batch-transfers}
31
31
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:
33
33
34
34
```solidity
35
35
// ERC-20
@@ -45,7 +45,7 @@ function safeBatchTransferFrom(
45
45
) external;
46
46
```
47
47
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
49
49
50
50
1. Transfer 100 tokens with id 3 from `_from` to `_to`.
51
51
2. Transfer 200 tokens with id 6 from `_from` to `_to`.
@@ -97,7 +97,7 @@ function isApprovedForAll(
97
97
98
98
The approvals are slightly different than ERC-20. Instead of approving specific amounts, you set an operator to approved or not approved via `setApprovalForAll`.
99
99
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.
101
101
102
102
This is intentionally designed with simplicity in mind. You can only approve everything for one address.
0 commit comments