@returns true if EVM bytecode was requested, i.e. we have to run the old code generator.
| 289 | |
| 290 | /// @returns true if EVM bytecode was requested, i.e. we have to run the old code generator. |
| 291 | bool isEvmBytecodeRequested(Json const& _outputSelection) |
| 292 | { |
| 293 | if (!_outputSelection.is_object()) |
| 294 | return false; |
| 295 | |
| 296 | static std::vector<std::string> const outputsThatRequireEvmBinaries = std::vector<std::string>{ |
| 297 | "*", |
| 298 | "evm.gasEstimates", "evm.legacyAssembly", "evm.assembly" |
| 299 | } + evmObjectComponents("bytecode") + evmObjectComponents("deployedBytecode"); |
| 300 | |
| 301 | for (auto const& fileRequests: _outputSelection) |
| 302 | for (auto const& requests: fileRequests) |
| 303 | for (auto const& output: outputsThatRequireEvmBinaries) |
| 304 | if (isArtifactRequested(requests, output, false)) |
| 305 | return true; |
| 306 | return false; |
| 307 | } |
| 308 | |
| 309 | /// @returns true if any per-contract ethdebug program output was requested. |
| 310 | bool isEthdebugProgramRequested(Json const& _outputSelection) |
no test coverage detected