| 1371 | } |
| 1372 | |
| 1373 | void EVMHostPrinter::callRecords() |
| 1374 | { |
| 1375 | static auto constexpr callKind = [](evmc_call_kind _kind) -> std::string |
| 1376 | { |
| 1377 | switch (_kind) |
| 1378 | { |
| 1379 | case evmc_call_kind::EVMC_CALL: |
| 1380 | return "CALL"; |
| 1381 | case evmc_call_kind::EVMC_DELEGATECALL: |
| 1382 | return "DELEGATECALL"; |
| 1383 | case evmc_call_kind::EVMC_CALLCODE: |
| 1384 | return "CALLCODE"; |
| 1385 | case evmc_call_kind::EVMC_CREATE: |
| 1386 | return "CREATE"; |
| 1387 | case evmc_call_kind::EVMC_CREATE2: |
| 1388 | return "CREATE2"; |
| 1389 | case evmc_call_kind::EVMC_EOFCREATE: |
| 1390 | return "EOFCREATE"; |
| 1391 | } |
| 1392 | unreachable(); |
| 1393 | }; |
| 1394 | |
| 1395 | for (auto const& record: m_host.recorded_calls) |
| 1396 | m_stateStream << callKind(record.kind) |
| 1397 | << " VALUE " |
| 1398 | << m_host.convertFromEVMC(record.value) |
| 1399 | << std::endl; |
| 1400 | } |
nothing calls this directly
no test coverage detected