Support the metadata.useLiteralContent setting

This commit is contained in:
Alex Beregszaszi 2017-03-30 02:41:38 +01:00
parent ef559de84f
commit df7e703925

View File

@ -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;