mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libevmasm: add a break
This commit is contained in:
parent
f6f271df8a
commit
362813f0d6
@ -152,6 +152,7 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _
|
|||||||
case Instruction::SELFDESTRUCT:
|
case Instruction::SELFDESTRUCT:
|
||||||
gas = GasCosts::selfdestructGas;
|
gas = GasCosts::selfdestructGas;
|
||||||
gas += GasCosts::callNewAccountGas; // We very rarely know whether the address exists.
|
gas += GasCosts::callNewAccountGas; // We very rarely know whether the address exists.
|
||||||
|
break;
|
||||||
case Instruction::CREATE:
|
case Instruction::CREATE:
|
||||||
if (_includeExternalCosts)
|
if (_includeExternalCosts)
|
||||||
// We assume that we do not know the target contract and thus, the consumption is infinite.
|
// We assume that we do not know the target contract and thus, the consumption is infinite.
|
||||||
|
Loading…
Reference in New Issue
Block a user