Add creationCode/runtimeCode contract creation detection to call graph

This commit is contained in:
Mathias Baumann
2021-03-22 15:44:23 +01:00
parent 8c583784c0
commit bccedf791b
3 changed files with 19 additions and 7 deletions
@@ -159,8 +159,8 @@ void checkCallGraphExpectations(
CallGraph const& callGraph = *_callGraphs.at(contractName);
edges[contractName] = edgeNames(callGraph.edges);
if (!callGraph.createdContracts.empty())
createdContractSets[contractName] = callGraph.createdContracts | views::transform(getContractName) | to<set<string>>();
if (!callGraph.bytecodeDependency.empty())
createdContractSets[contractName] = callGraph.bytecodeDependency | views::keys | views::transform(getContractName) | to<set<string>>();
if (!callGraph.emittedEvents.empty())
emittedEventSets[contractName] = callGraph.emittedEvents | views::transform(eventToString) | to<set<string>>();
}