diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-07 00:54:05 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-24 08:18:18 +0800 |
commit | 81006dae98ee18c33994af0274de10857774ff70 (patch) | |
tree | f12a3778dacf688b76df7ecabcc1ad24954e36aa /libsolidity/codegen | |
parent | ba437ef31a95f40f510a475e8b329f061e929b90 (diff) | |
download | dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.gz 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.cpp | 3 |
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, |