From 4e24639e396a6ed540b1382d915903c1334c1b66 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Mon, 16 Jan 2017 14:57:49 +0100 Subject: libevmasm: EIP150.c gas change --- libevmasm/GasMeter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libevmasm') diff --git a/libevmasm/GasMeter.cpp b/libevmasm/GasMeter.cpp index e4fe7701..a5f0da1b 100644 --- a/libevmasm/GasMeter.cpp +++ b/libevmasm/GasMeter.cpp @@ -151,6 +151,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. case Instruction::CREATE: if (_includeExternalCosts) // We assume that we do not know the target contract and thus, the consumption is infinite. -- cgit