diff --git a/EIPS/eip-223.md b/EIPS/eip-223.md index 68c3522c813e4c..74750b59cb31cb 100644 --- a/EIPS/eip-223.md +++ b/EIPS/eip-223.md @@ -38,7 +38,7 @@ 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` @@ -46,17 +46,17 @@ Gets the total supply of the token. The functionality of this method is identica 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. @@ -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. @@ -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)`