Skip to content

Commit

Permalink
handle upgrade empty params (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 authored Nov 6, 2024
1 parent 09848b7 commit 240904b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
)

const upgradeName = "0.6.0"
const upgradeName = "0.6.3"

// RegisterUpgradeHandlers returns upgrade handlers
func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) {
Expand Down
2 changes: 2 additions & 0 deletions x/evm/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ func (k Keeper) GasRefundRatio(ctx context.Context) (math.LegacyDec, error) {
params, err := k.Params.Get(ctx)
if err != nil {
return math.LegacyZeroDec(), err
} else if params.GasRefundRatio.IsNil() {
return math.LegacyZeroDec(), nil
}

return params.GasRefundRatio, nil
Expand Down

0 comments on commit 240904b

Please sign in to comment.