Skip to content

Commit 924aef1

Browse files
committed
fixes to get working on site
1 parent 21f16f9 commit 924aef1

File tree

2 files changed

+5
-4
lines changed
  • public/content/developers/docs/standards/tokens/erc-223
  • src/lib/utils

2 files changed

+5
-4
lines changed

src/content/developers/docs/standards/tokens/erc-223/index.md renamed to public/content/developers/docs/standards/tokens/erc-223/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ lang: en
88

99
### What is ERC-223? {#what-is-erc223}
1010

11-
The ERC-223 is a standard for fungible tokens, similar to the ERC-20 standard. The key difference is that ERC-223 defines not only the token API but also the logic for transferring tokens from sender to recipient. It introduces a communication model that allows token transfers to be handled on the recipient's side.
11+
ERC-223 is a standard for fungible tokens, similar to the ERC-20 standard. The key difference is that ERC-223 defines not only the token API but also the logic for transferring tokens from sender to recipient. It introduces a communication model that allows token transfers to be handled on the recipient's side.
1212

1313
### Differences from ERC-20 {#erc20-differences}
1414

@@ -36,7 +36,7 @@ The contract is not obligated to have only these functions and a developer can a
3636

3737
From [EIP-223](https://eips.ethereum.org/EIPS/eip-223):
3838

39-
#### Methods {#methods}
39+
### Methods {#methods}
4040

4141
ERC-223 token must implement the following methods:
4242

@@ -58,7 +58,7 @@ function tokenReceived(address _from, uint _value, bytes calldata _data)
5858

5959
If ERC-223 tokens are sent to a contract that doesn't implement the `tokenReceived(..)` function then the transfer must fail and the tokens must not be moved from the sender's balance.
6060

61-
#### Events {#events}
61+
### Events {#events}
6262

6363
```solidity
6464
event Transfer(address indexed _from, address indexed _to, uint256 _value, bytes calldata _data)
@@ -68,7 +68,7 @@ event Transfer(address indexed _from, address indexed _to, uint256 _value, bytes
6868

6969
The API of ERC-223 token is similar to that of ERC-20, so from UI development point of view there is no difference. The only exception here is that ERC-223 tokens may not have `approve` + `transferFrom` functions as these are optional for this standard.
7070

71-
### Solidity examples {#solidity-example}
71+
#### Solidity examples {#solidity-example}
7272

7373
The following example illustrates how a basic ERC-223 token contract operates:
7474

src/lib/utils/md.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const getPostSlugs = (dir: string, files: string[] = []) => {
140140
"/developers/docs/standards",
141141
"/developers/docs/standards/tokens",
142142
"/developers/docs/standards/tokens/erc-20",
143+
"/developers/docs/standards/tokens/erc-223",
143144
"/developers/docs/standards/tokens/erc-721",
144145
"/developers/docs/standards/tokens/erc-777",
145146
"/developers/docs/standards/tokens/erc-1155",

0 commit comments

Comments
 (0)