Merge pull request #11576 from ethereum/docs-clarify-docker-volumes-with-standard-json

[Docs] Clarify the statement that docker volumes are not required with `--standard-json`
This commit is contained in:
chriseth 2021-06-28 14:27:25 +02:00 committed by GitHub
commit 1fd225ac88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,9 @@ local folder for input and output, and specify the contract to compile. For exam
docker run -v /local/path:/sources ethereum/solc:stable -o /sources/output --abi --bin /sources/Contract.sol
You can also use the standard JSON interface (which is recommended when using the compiler with tooling).
When using this interface it is not necessary to mount any directories.
When using this interface it is not necessary to mount any directories as long as the JSON input is
self-contained (i.e. it does not refer to any external files that would have to be
:ref:`loaded by the import callback <initial-vfs-content-standard-json-with-import-callback>`).
.. code-block:: bash

View File

@ -104,6 +104,8 @@ The initial content of the VFS depends on how you invoke the compiler:
The ``sources`` dictionary becomes the initial content of the virtual filesystem and its keys
are used as source unit names.
.. _initial-vfs-content-standard-json-with-import-callback:
#. **Standard JSON (via import callback)**
With Standard JSON it is also possible to tell the compiler to use the import callback to obtain