Include language field in the JSON

This commit is contained in:
Alex Beregszaszi 2017-02-08 19:00:07 +00:00
parent 10d3a591d4
commit 749db7608b

View File

@ -69,6 +69,8 @@ Input Description
.. code-block:: none .. code-block:: none
{ {
// Required: Source code language, such as "Solidity", "serpent", "lll", "assembly", etc.
language: "Solidity",
// Required // Required
sources: sources:
{ {
@ -205,6 +207,7 @@ Output Description
// This contains the contract-level outputs. It can be limited/filtered by the outputSelection settings. // This contains the contract-level outputs. It can be limited/filtered by the outputSelection settings.
contracts: { contracts: {
"sourceFile.sol": { "sourceFile.sol": {
// If the language used has no contract names, this field should equal to an empty string.
"ContractName": { "ContractName": {
// The Ethereum Contract ABI. If empty, it is represented as an empty array. // The Ethereum Contract ABI. If empty, it is represented as an empty array.
// See https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI // See https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI