good morning!!!!

Skip to content
Snippets Groups Projects
Commit 1a652afe authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub
Browse files

Merge pull request #2724 from pirapira/fix_reset_fees

vm: Replace some SstoreClearGas with SstoreResetGas
parents b7caa175 86bc7795
Branches
Tags
No related merge requests found
...@@ -421,7 +421,7 @@ func jitCalculateGasAndSize(env Environment, contract *Contract, instr instructi ...@@ -421,7 +421,7 @@ func jitCalculateGasAndSize(env Environment, contract *Contract, instr instructi
g = params.SstoreClearGas g = params.SstoreClearGas
} else { } else {
g = params.SstoreClearGas g = params.SstoreResetGas
} }
gas.Set(g) gas.Set(g)
case SUICIDE: case SUICIDE:
......
...@@ -306,7 +306,7 @@ func calculateGasAndSize(env Environment, contract *Contract, caller ContractRef ...@@ -306,7 +306,7 @@ func calculateGasAndSize(env Environment, contract *Contract, caller ContractRef
g = params.SstoreClearGas g = params.SstoreClearGas
} else { } else {
// non 0 => non 0 (or 0 => 0) // non 0 => non 0 (or 0 => 0)
g = params.SstoreClearGas g = params.SstoreResetGas
} }
gas.Set(g) gas.Set(g)
case SUICIDE: case SUICIDE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment