aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-10 22:38:43 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-24 08:18:18 +0800
commitc674155e584d2a1d6a88c49485e281e2a12b85d0 (patch)
tree90f2bfd8ee8652c24c5d49d6f2317f6f66ec693c
parenta36e2ce0cbb7e1830e25dacd8d79f207c9bcca6a (diff)
downloaddexon-solidity-c674155e584d2a1d6a88c49485e281e2a12b85d0.tar.gz
dexon-solidity-c674155e584d2a1d6a88c49485e281e2a12b85d0.tar.zst
dexon-solidity-c674155e584d2a1d6a88c49485e281e2a12b85d0.zip
Do not keep the gas stipend if sending non-zero value
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
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;