Skip to content

Commit

Permalink
Update erc827-checker.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyu0927 committed Jul 24, 2018
1 parent 11d1f87 commit 9f063e2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/erc-contract-standard-checker/erc827-checker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
ERC827 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 ERC827 <contract file>
./lityc/lityc --contract-standard ERC827 <contract file>
Examples
Expand Down Expand Up @@ -39,7 +43,7 @@ Examples

.. code:: bash
$ lityc --contract-standard ERC827 erc827_standard_no_inheritance.sol
$ ./lityc/lityc --contract-standard ERC827 erc827_standard_no_inheritance.sol
erc827_standard_no_inheritance.sol:3:1: Info: ERC827Interface is compatible to ERC827.
contract ERC827Interface {
Expand Down Expand Up @@ -72,7 +76,7 @@ Examples
.. code:: bash
$ lityc --contract-standard ERC827 erc827_standard.sol
$ ./lityc/lityc --contract-standard ERC827 erc827_standard.sol
erc827_standard.sol:3:1: Info: Missing 'transferAndCall' with type signature 'function (address,uint256,bytes memory) payable external returns (bool)'. ERC827Base is not compatible to ERC827.
contract ERC827Base {
Expand Down

0 comments on commit 9f063e2

Please sign in to comment.