From df7e703925e712a91871c517733c5d7949457ee2 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 30 Mar 2017 02:41:38 +0100 Subject: Support the metadata.useLiteralContent setting --- libsolidity/interface/StandardCompiler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libsolidity/interface') 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; -- cgit v1.2.3