Merge pull request #2724 from pirapira/fix_reset_fees

vm: Replace some SstoreClearGas with SstoreResetGas
This commit is contained in:
Péter Szilágyi 2016-07-15 16:24:16 +03:00 committed by GitHub
commit 1a652afe16
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: