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

Method callValueCheck

libsolidity/codegen/ir/IRGenerator.cpp:1046–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044}
1045
1046std::string IRGenerator::callValueCheck()
1047{
1048 return "if callvalue() { " + m_utils.revertReasonIfDebugFunction("Ether sent to non-payable function") + "() }";
1049}
1050
1051std::string IRGenerator::dispatchRoutine(ContractDefinition const& _contract)
1052{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected