diff options
author | chriseth <c@ethdev.com> | 2015-06-05 18:25:10 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-05 23:37:16 +0800 |
commit | 6667c6736483b2ff9855b9b9a9147a9703a188d2 (patch) | |
tree | cec6ff162287cc7c6b7e8582b49842a782f83dab /ExpressionCompiler.cpp | |
parent | 92eb04c6eccba8b6d7c5c02e5ca2084d9e4fecf6 (diff) | |
download | dexon-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.cpp | 3 |
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 ), {} |