MCPcopy Create free account
hub / github.com/argotorg/solidity / callRecords

Method callRecords

test/EVMHost.cpp:1373–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371}
1372
1373void 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}

Callers

nothing calls this directly

Calls 2

unreachableFunction · 0.85
convertFromEVMCMethod · 0.80

Tested by

no test coverage detected