Do not require payable for callvalue instruction.

This commit is contained in:
chriseth
2019-05-22 11:30:29 +02:00
parent f06582f97f
commit 7506b5752a
6 changed files with 4 additions and 5 deletions
-2
View File
@@ -112,8 +112,6 @@ private:
{
if (eth::SemanticInformation::invalidInViewFunctions(_instruction))
m_reportMutability(StateMutability::NonPayable, _location);
else if (_instruction == dev::eth::Instruction::CALLVALUE)
m_reportMutability(StateMutability::Payable, _location);
else if (eth::SemanticInformation::invalidInPureFunctions(_instruction))
m_reportMutability(StateMutability::View, _location);
}