Skip to content

Commit

Permalink
Update EIP-223: Update eip-223.md
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
Dexaran authored Aug 9, 2023
1 parent a5738a6 commit ff3ec32
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions EIPS/eip-223.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ Token transfers to contracts not implementing `tokenReceived` as described below
function totalSupply() view returns (uint256 totalSupply)
```

Gets the total supply of the token. The functionality of this method is identical to that of ERC-20.
Returns the total supply of the token. The functionality of this method is identical to that of ERC-20.

##### `name`

```solidity
function name() view returns (string _name)
```

Gets the name of the token. The functionality of this method is identical to that of ERC-20.
Returns the name of the token. The functionality of this method is identical to that of ERC-20.

OPTIONAL - This method can be used to improve usability, but interfaces and other contracts MUST NOT expect these values to be present.

##### `symbol`

```solidity
function symbol() view returns (bytes32 _symbol)
function symbol() view returns (string _symbol)
```

Gets the symbol of the token. The functionality of this method is identical to that of ERC-20.
Returns the symbol of the token. The functionality of this method is identical to that of ERC-20.

OPTIONAL - This method can be used to improve usability, but interfaces and other contracts MUST NOT expect these values to be present.

Expand All @@ -66,7 +66,17 @@ OPTIONAL - This method can be used to improve usability, but interfaces and othe
function decimals() view returns (uint8 _decimals)
```

Gets the number of decimals of the token. The functionality of this method is identical to that of ERC-20.
Returns the number of decimals of the token. The functionality of this method is identical to that of ERC-20.

OPTIONAL - This method can be used to improve usability, but interfaces and other contracts MUST NOT expect these values to be present.

##### `standard`

```solidity
function standard() public view returns (string memory)
```

Returns the identifier of the standard. If the token is [ERC-223](./eip-20.md) then it must return `"223"`.

OPTIONAL - This method can be used to improve usability, but interfaces and other contracts MUST NOT expect these values to be present.

Expand All @@ -76,7 +86,7 @@ OPTIONAL - This method can be used to improve usability, but interfaces and othe
function balanceOf(address _owner) view returns (uint256 balance)
```

Gets the account balance of another account with address `_owner`. The functionality of this method is identical to that of ERC-20.
Returns the account balance of another account with address `_owner`. The functionality of this method is identical to that of ERC-20.

##### `transfer(address, uint)`

Expand Down

0 comments on commit ff3ec32

Please sign in to comment.