Do not keep the gas stipend if sending non-zero value

This commit is contained in:
Alex Beregszaszi
2017-02-24 00:18:18 +00:00
parent a36e2ce0cb
commit c674155e58
+1 -1
View File
@@ -627,7 +627,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
*arguments.front()->annotation().type,
*function.parameterTypes().front(), true
);
if (function.location() != Location::Transfer)
if (!function.gasSet())
{
// gas <- gas * !value
m_context << Instruction::SWAP1 << Instruction::DUP2;