parent
e91956abbd
commit
eb8b793606
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 117 KiB |
@ -0,0 +1,31 @@ |
||||
Using the Solidity ``import`` |
||||
======================= |
||||
|
||||
.. _tutorial-import: |
||||
|
||||
This tutorial will show how to import local file and external file. |
||||
|
||||
The compilation result will contain contracts implemented in imported file. |
||||
|
||||
For a detailed explanation of the ``import`` keyword. see the ``Solidity`` `documentation <http://solidity.readthedocs.io/en/develop/layout-of-source-files.html?highlight=import#importing-other-source-files>`_ |
||||
|
||||
Importing a local file |
||||
---------------------- |
||||
|
||||
That is the common way. |
||||
|
||||
.. image:: tuto_basicimport.png |
||||
|
||||
Importing from Github |
||||
---------------------- |
||||
|
||||
.. image:: tuto_importgit.png |
||||
|
||||
the URL should be like: ``http://github.com/<owner>/<repo>/<path to the file>`` |
||||
|
||||
Importing from Swarm |
||||
-------------------- |
||||
|
||||
.. image:: tuto_importswarm.png |
||||
|
||||
|
Loading…
Reference in new issue