aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-05 18:25:10 +0800
committerchriseth <c@ethdev.com>2015-06-05 23:37:16 +0800
commit6667c6736483b2ff9855b9b9a9147a9703a188d2 (patch)
treecec6ff162287cc7c6b7e8582b49842a782f83dab /ExpressionCompiler.cpp
parent92eb04c6eccba8b6d7c5c02e5ca2084d9e4fecf6 (diff)
downloaddexon-solidity-6667c6736483b2ff9855b9b9a9147a9703a188d2.tar.gz
dexon-solidity-6667c6736483b2ff9855b9b9a9147a9703a188d2.tar.zst
dexon-solidity-6667c6736483b2ff9855b9b9a9147a9703a188d2.zip
Fallback takes constant amount of gas, and send to gas with send.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 62df9205..f91839ed 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -521,6 +521,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
break;
case Location::Send:
_functionCall.getExpression().accept(*this);
+ m_context << u256(0); // do not send gas (there still is the stipend)
arguments.front()->accept(*this);
appendTypeConversion(*arguments.front()->getType(),
*function.getParameterTypes().front(), true);
@@ -532,7 +533,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
strings(),
Location::Bare,
false,
- false,
+ true,
true
),
{}