mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update docs/metadata.rst
Co-authored-by: Daniel Kirchner <daniel@ekpyron.org>
This commit is contained in:
parent
de857c27f3
commit
14f63cc7e8
@ -22,9 +22,9 @@ the :ref:`Standard JSON Interface<compiler-api>`.
|
|||||||
You have to publish the metadata file to IPFS, Swarm, or another service so
|
You have to publish the metadata file to IPFS, Swarm, or another service so
|
||||||
that others can access it. You create the file by using the ``solc --metadata``
|
that others can access it. You create the file by using the ``solc --metadata``
|
||||||
command together with the ``--output-dir`` parameter. Without the parameter,
|
command together with the ``--output-dir`` parameter. Without the parameter,
|
||||||
it will only be written to standard out.
|
the metadata will be written to standard output.
|
||||||
It contains IPFS and Swarm references to the source code, so you have to
|
The metadata contains IPFS and Swarm references to the source code, so you have to
|
||||||
upload all source files and the metadata file. For IPFS, The hash contained
|
upload all source files in addition to the metadata file. For IPFS, the hash contained
|
||||||
in the CID returned by ``ipfs add`` (not the direct sha2-256 hash of the file)
|
in the CID returned by ``ipfs add`` (not the direct sha2-256 hash of the file)
|
||||||
shall match with the one contained in the bytecode.
|
shall match with the one contained in the bytecode.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user