mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add creationCode/runtimeCode contract creation detection to call graph
This commit is contained in:
@@ -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>>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user