libevmasm: EIP150.c gas change

This commit is contained in:
Yoichi Hirai
2017-04-25 16:14:58 +02:00
committed by chriseth
parent e54a3ead16
commit 4e24639e39
+1
View File
@@ -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.