Updated gas costs for Berlin

This commit is contained in:
hrkrshnn
2021-05-26 11:36:43 +02:00
parent d80a92752a
commit 7d28ea3746
3 changed files with 70 additions and 21 deletions
+2 -2
View File
@@ -71,9 +71,9 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _
m_state->storageContent().count(slot) &&
classes.knownNonZero(m_state->storageContent().at(slot))
))
gas = GasCosts::sstoreResetGas; //@todo take refunds into account
gas = GasCosts::totalSstoreResetGas(m_evmVersion); //@todo take refunds into account
else
gas = GasCosts::sstoreSetGas;
gas = GasCosts::totalSstoreSetGas(m_evmVersion);
break;
}
case Instruction::SLOAD: