aboutsummaryrefslogtreecommitdiffstats
path: root/solc/jsonCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-08-17 15:58:24 +0800
committerGitHub <noreply@github.com>2016-08-17 15:58:24 +0800
commitc499470b1cfde0aa2e7cd75fc13fd2a09c6430c7 (patch)
treea6d798a01ee683eddb7b9aa6bab6dffa0a081b93 /solc/jsonCompiler.cpp
parentec3298535ebe1d6602df9196b81c92d4a88b4821 (diff)
downloaddexon-solidity-c499470b1cfde0aa2e7cd75fc13fd2a09c6430c7.tar.gz
dexon-solidity-c499470b1cfde0aa2e7cd75fc13fd2a09c6430c7.tar.zst
dexon-solidity-c499470b1cfde0aa2e7cd75fc13fd2a09c6430c7.zip
BREAKING: Streamline json output field naming. (#763)
Diffstat (limited to 'solc/jsonCompiler.cpp')
-rw-r--r--solc/jsonCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/solc/jsonCompiler.cpp b/solc/jsonCompiler.cpp
index 20112103..0a1b9a87 100644
--- a/solc/jsonCompiler.cpp
+++ b/solc/jsonCompiler.cpp
@@ -207,7 +207,7 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback
for (string const& contractName: compiler.contractNames())
{
Json::Value contractData(Json::objectValue);
- contractData["solidity_interface"] = compiler.solidityInterface(contractName);
+ contractData["solidityInterface"] = compiler.solidityInterface(contractName);
contractData["interface"] = compiler.interface(contractName);
contractData["bytecode"] = compiler.object(contractName).toHex();
contractData["runtimeBytecode"] = compiler.runtimeObject(contractName).toHex();
@@ -217,7 +217,7 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback
auto sourceMap = compiler.sourceMapping(contractName);
contractData["srcmap"] = sourceMap ? *sourceMap : "";
auto runtimeSourceMap = compiler.runtimeSourceMapping(contractName);
- contractData["srcmap-runtime"] = runtimeSourceMap ? *runtimeSourceMap : "";
+ contractData["srcmapRuntime"] = runtimeSourceMap ? *runtimeSourceMap : "";
ostringstream unused;
contractData["assembly"] = compiler.streamAssembly(unused, contractName, _sources, true);
output["contracts"][contractName] = contractData;