mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added tests for --no-append-metadata
- Command line tests - Documented the standard json - Changelog - A Change in SolidityExecutionFramework to prevent flaky gas tests - A boost test for --no-append-metadata - Removed an outdated comment
This commit is contained in:
@@ -220,6 +220,10 @@ Whereas release builds of solc use a 3 byte encoding of the version as shown
|
||||
above (one byte each for major, minor and patch version number), prerelease builds
|
||||
will instead use a complete version string including commit hash and build date.
|
||||
|
||||
The commandline flag ``--no-cbor-metadata`` can be used to skip metadata
|
||||
from getting appended at the end of the deployed bytecode. Equivalently, the
|
||||
boolean field ``settings.metadata.appendCBOR`` in Standard JSON input can be set to false.
|
||||
|
||||
.. note::
|
||||
The CBOR mapping can also contain other keys, so it is better to fully
|
||||
decode the data instead of relying on it starting with ``0xa264``.
|
||||
|
||||
@@ -323,6 +323,9 @@ Input Description
|
||||
},
|
||||
// Metadata settings (optional)
|
||||
"metadata": {
|
||||
// The CBOR metadata is appended at the end of the bytecode by default.
|
||||
// Setting this to false omits the metadata from the runtime and deploy time code.
|
||||
"appendCBOR": true,
|
||||
// Use only literal content and not URLs (false by default)
|
||||
"useLiteralContent": true,
|
||||
// Use the given hash method for the metadata hash that is appended to the bytecode.
|
||||
|
||||
Reference in New Issue
Block a user