aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-03-30 09:41:38 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-04-21 02:38:00 +0800
commitdf7e703925e712a91871c517733c5d7949457ee2 (patch)
tree326bc1acb64463ba1cc6df0ff7d88146aae58367
parentef559de84f1ee87225ac41f61f37dd9e17acc424 (diff)
downloaddexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar.gz
dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar.zst
dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.zip
Support the metadata.useLiteralContent setting
-rw-r--r--libsolidity/interface/StandardCompiler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp
index 13f82f60..42404a1c 100644
--- a/libsolidity/interface/StandardCompiler.cpp
+++ b/libsolidity/interface/StandardCompiler.cpp
@@ -166,6 +166,9 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
libraries[library] = h160(jsonSourceName[library].asString());
}
+ Json::Value metadataSettings = settings.get("metadata", Json::Value());
+ m_compilerStack.useMetadataLiteralSources(metadataSettings.get("useLiteralContent", Json::Value(false)).asBool());
+
auto scannerFromSourceName = [&](string const& _sourceName) -> solidity::Scanner const& { return m_compilerStack.scanner(_sourceName); };
Json::Value errors = Json::arrayValue;