Fallback takes constant amount of gas, and send to gas with send.

This commit is contained in:
chriseth
2015-06-05 17:37:16 +02:00
parent 92eb04c6ec
commit 6667c67364
2 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -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
),
{}