mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support gas modifier on addr.transfer()
This commit is contained in:
1 parent
ba437ef31a
commit
81006dae98
3 files changed
+10
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user