aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-01 19:56:36 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-01 21:00:17 +0800
commit39dba0efe83c5f6309ac2582d92a7150a9d6b0d8 (patch)
tree18d222d5d9079b563ebdf7653eee1a51db1f291e /libsolidity/codegen
parent7e07eb6eea5195213398e0b6e0d502f03bfb4f19 (diff)
downloaddexon-solidity-39dba0efe83c5f6309ac2582d92a7150a9d6b0d8.tar.gz
dexon-solidity-39dba0efe83c5f6309ac2582d92a7150a9d6b0d8.tar.zst
dexon-solidity-39dba0efe83c5f6309ac2582d92a7150a9d6b0d8.zip
Provide new account gas for low-level callcode/delegatecall
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index d661e1b1..2c8cfd76 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1712,7 +1712,7 @@ void ExpressionCompiler::appendExternalFunctionCall(
u256 gasNeededByCaller = eth::GasCosts::callGas + 10;
if (_functionType.valueSet())
gasNeededByCaller += eth::GasCosts::callValueTransferGas;
- if (!isCallCode && !isDelegateCall && !existenceChecked)
+ if (!existenceChecked)
gasNeededByCaller += eth::GasCosts::callNewAccountGas; // we never know
m_context << gasNeededByCaller << Instruction::GAS << Instruction::SUB;
}