aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-07 00:54:05 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-24 08:18:18 +0800
commit81006dae98ee18c33994af0274de10857774ff70 (patch)
treef12a3778dacf688b76df7ecabcc1ad24954e36aa /libsolidity/codegen
parentba437ef31a95f40f510a475e8b329f061e929b90 (diff)
downloaddexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar
dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.gz
dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.bz2
dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.lz
dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.xz
dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.zst
dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.zip
Support gas modifier on addr.transfer()
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index b0031513..92b91563 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -620,7 +620,8 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
_functionCall.expression().accept(*this);
// Provide the gas stipend manually at first because we may send zero ether.
// Will be zeroed if we send more than zero ether.
- m_context << u256(eth::GasCosts::callStipend);
+ if (!function.gasSet())
+ m_context << u256(eth::GasCosts::callStipend);
arguments.front()->accept(*this);
utils().convertType(
*arguments.front()->annotation().type,