diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-05 18:34:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 18:34:17 +0800 |
commit | 880be2581108f570d0824352ff7221c8cae3a998 (patch) | |
tree | 33d4da41fb9cffe3d04bc9053b7113b99bf65774 /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | 11c51de5b95343cd1dfcb83a2ef8da0592464c96 (diff) | |
parent | 69ea5c43f3ef2fe08bed0edbe1d45d4553cbbee4 (diff) | |
download | dexon-solidity-880be2581108f570d0824352ff7221c8cae3a998.tar.gz dexon-solidity-880be2581108f570d0824352ff7221c8cae3a998.tar.zst dexon-solidity-880be2581108f570d0824352ff7221c8cae3a998.zip |
Merge pull request #3029 from ethereum/tanwisgas
Send all gas for 0.5.0.
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index c2bf0f5c..fe37baac 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -1714,6 +1714,9 @@ void ExpressionCompiler::appendExternalFunctionCall( if (_functionType.gasSet()) m_context << dupInstruction(m_context.baseToCurrentStackOffset(gasStackPos)); + else if (m_context.experimentalFeatureActive(ExperimentalFeature::V050)) + // Send all gas (requires tangerine whistle EVM) + m_context << Instruction::GAS; else { // send all gas except the amount needed to execute "SUB" and "CALL" |