diff --git a/docs/compiling-a-contract.rst b/docs/compiling-a-contract.rst index 76efb1bbf0..1984faa4c7 100644 --- a/docs/compiling-a-contract.rst +++ b/docs/compiling-a-contract.rst @@ -208,6 +208,9 @@ The following example describes the expected input format of ``vyper-json``. Com // optional, whether or not optimizations are turned on // defaults to true "optimize": true, + // optional, whether or not the bytecode should include Vyper's signature + // defaults to true + "bytecodeMetadata": true, // The following is used to select desired outputs based on file names. // File names are given as keys, a star as a file name matches all files. // Outputs can also follow the Solidity format where second level keys diff --git a/vyper/cli/vyper_json.py b/vyper/cli/vyper_json.py index 55b6c38480..0abefdebff 100755 --- a/vyper/cli/vyper_json.py +++ b/vyper/cli/vyper_json.py @@ -354,6 +354,7 @@ def compile_from_input_dict( evm_version = get_evm_version(input_dict) no_optimize = not input_dict["settings"].get("optimize", True) + no_bytecode_metadata = not input_dict["settings"].get("bytecodeMetadata", True) contract_sources: ContractCodes = get_input_dict_contracts(input_dict) interface_sources = get_input_dict_interfaces(input_dict) @@ -377,6 +378,7 @@ def compile_from_input_dict( initial_id=id_, no_optimize=no_optimize, evm_version=evm_version, + no_bytecode_metadata=no_bytecode_metadata, ) except Exception as exc: return exc_handler(contract_path, exc, "compiler"), {}