mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libevmasm: EIP150.c gas change
This commit is contained in:
parent
e54a3ead16
commit
4e24639e39
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user