When trying to estimate a cost for an SSTORE operation (0x55), for example for (value, current value in storage, original value before the transaction) = (0, 1, 0), the field "State: 'key' is cold?" correctly picks "No" as the answer because the current value in storage is different than the original one, but nevertheless static gas is added if the user previously selected "Yes" as the answer to that question.
How to reproduce:
Set "State: 'key' is cold?" to Yes.
Set "Input: value" to 1.
Set "State: original value before the current transaction" to 1.
The result shows "Static gas + dynamic gas = 2200", which means that 2100 static gas was charged even though the slot was warm.
When trying to estimate a cost for an SSTORE operation (
0x55
), for example for (value, current value in storage, original value before the transaction) = (0, 1, 0), the field "State: 'key' is cold?" correctly picks "No" as the answer because the current value in storage is different than the original one, but nevertheless static gas is added if the user previously selected "Yes" as the answer to that question.How to reproduce:
The result shows "Static gas + dynamic gas = 2200", which means that 2100 static gas was charged even though the slot was warm.