From c674155e584d2a1d6a88c49485e281e2a12b85d0 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 10 Feb 2017 14:38:43 +0000 Subject: Do not keep the gas stipend if sending non-zero value --- libsolidity/codegen/ExpressionCompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity/codegen') diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 92b91563..4956871d 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -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; -- cgit