diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-03-30 09:41:38 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-21 02:38:00 +0800 |
commit | df7e703925e712a91871c517733c5d7949457ee2 (patch) | |
tree | 326bc1acb64463ba1cc6df0ff7d88146aae58367 /libsolidity/interface | |
parent | ef559de84f1ee87225ac41f61f37dd9e17acc424 (diff) | |
download | dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar.gz dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar.bz2 dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar.lz dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar.xz dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.tar.zst dexon-solidity-df7e703925e712a91871c517733c5d7949457ee2.zip |
Support the metadata.useLiteralContent setting
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 3 |
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; |