Skip to content

Commit

Permalink
Update erc20-checker.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyu0927 committed Jul 24, 2018
1 parent 46be08a commit e0a0cb5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/erc-contract-standard-checker/erc20-checker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
ERC20 Contract Standard Checker
===============================

Make sure you are in the folder where lityc is installed.

For example your location should be "~/lity/build" if you followed `this tutorial <http://lity.readthedocs.io/en/latest/download.html>`_.

Enable contract standard checker with specific ERC
--------------------------------------------------

.. code:: bash
lityc --contract-standard ERC20 <contract file>
$ ./lityc/lityc --contract-standard ERC20 <contract file>
Examples
Expand Down Expand Up @@ -37,7 +41,7 @@ Examples

.. code:: bash
$ lityc --contract-standard ERC20 erc20_interface.sol
$ ./lityc/lityc --contract-standard ERC20 erc20_interface.sol
erc20_standard.sol:3:1: Info: ERC20Interface is compatible to ERC20.
contract ERC20Interface {
Expand Down Expand Up @@ -68,7 +72,7 @@ Examples
.. code:: bash
$ lityc --contract-standard ERC20 wrong_mutability.sol
$ ./lityc/lityc --contract-standard ERC20 wrong_mutability.sol
wrong_mutability.sol:3:1: Info: Missing 'totalSupply' with type signature 'function () view external returns (uint256)'. ERC20Interface is not compatible to ERC20.
contract ERC20Interface {
Expand Down

0 comments on commit e0a0cb5

Please sign in to comment.