mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support the metadata.useLiteralContent setting
This commit is contained in:
parent
ef559de84f
commit
df7e703925
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user