Skip to content

Commit

Permalink
Fix inconsistent result for genesis transaction in ICON platform
Browse files Browse the repository at this point in the history
  • Loading branch information
mksong76 committed Jul 15, 2021
1 parent 57dbd9c commit d326bc6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions icon/chainscore.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,14 +551,10 @@ func applyStepCosts(fee *FeeConfig, as state.AccountState) error {
stepTypes := scoredb.NewArrayDB(as, state.VarStepTypes)
stepCostDB := scoredb.NewDictDB(as, state.VarStepCosts, 1)
if fee.StepCosts != nil {
for k, cost := range fee.StepCosts {
for k, _ := range fee.StepCosts {
if !state.IsValidStepType(k) {
return scoreresult.IllegalFormatError.Errorf("InvalidStepType(%s)", k)
}
if err := stepTypes.Put(k); err != nil { return err }
if err := stepCostDB.Set(k, cost.Value); err != nil {
return err
}
}
for _, k := range state.AllStepTypes {
cost, ok := fee.StepCosts[k]
Expand Down

0 comments on commit d326bc6

Please sign in to comment.