From 362813f0d6a0a8e548a626f2383121301b582a78 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Thu, 9 Feb 2017 18:11:23 +0100 Subject: libevmasm: add a break --- libevmasm/GasMeter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libevmasm/GasMeter.cpp b/libevmasm/GasMeter.cpp index a5f0da1b..f5fd00ea 100644 --- a/libevmasm/GasMeter.cpp +++ b/libevmasm/GasMeter.cpp @@ -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. -- cgit