Bubble up error messages.

This commit is contained in:
chriseth committed 2018-04-12 13:09:38 +02:00
1 parent ae1d040285
commit 7a9ee69e98
6 files changed
+62 -10

No files matched your search

+2
View File
@@ -128,6 +128,7 @@ void ContractCompiler::appendCallValueCheck()
{
// Throw if function is not payable but call contained ether.
m_context << Instruction::CALLVALUE;
// TODO: error message?
m_context.appendConditionalRevert();
}
@@ -327,6 +328,7 @@ void ContractCompiler::appendFunctionSelector(ContractDefinition const& _contrac
m_context << Instruction::STOP;
}
else
// TODO: error message here?
m_context.appendRevert();
for (auto const& it: interfaceFunctions)