mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3029 from ethereum/tanwisgas
Send all gas for 0.5.0.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user