libevmasm: add a break

This commit is contained in:
Yoichi Hirai 2017-02-09 18:11:23 +01:00 committed by chriseth
parent f6f271df8a
commit 362813f0d6

View File

@ -152,6 +152,7 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _
case Instruction::SELFDESTRUCT:
gas = GasCosts::selfdestructGas;
gas += GasCosts::callNewAccountGas; // We very rarely know whether the address exists.
break;
case Instruction::CREATE:
if (_includeExternalCosts)
// We assume that we do not know the target contract and thus, the consumption is infinite.