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

Method receiveFunction

libsolidity/ast/AST.cpp:206–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206FunctionDefinition const* ContractDefinition::receiveFunction() const
207{
208 for (ContractDefinition const* contract: annotation().linearizedBaseContracts)
209 for (FunctionDefinition const* f: contract->definedFunctions())
210 if (f->isReceive())
211 return f;
212 return nullptr;
213}
214
215std::vector<EventDefinition const*> const& ContractDefinition::definedInterfaceEvents() const
216{

Callers 7

generateMethod · 0.80
buildDeployedGraphMethod · 0.80
isPayableMethod · 0.80
hasPayableFunctionsFunction · 0.80
dispatchRoutineMethod · 0.80

Calls 2

definedFunctionsMethod · 0.80
isReceiveMethod · 0.80

Tested by

no test coverage detected