Skip to content

Commit 240904b

Browse files
authored
handle upgrade empty params (#101)
1 parent 09848b7 commit 240904b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/cosmos/cosmos-sdk/types/module"
1111
)
1212

13-
const upgradeName = "0.6.0"
13+
const upgradeName = "0.6.3"
1414

1515
// RegisterUpgradeHandlers returns upgrade handlers
1616
func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) {

x/evm/keeper/params.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ func (k Keeper) GasRefundRatio(ctx context.Context) (math.LegacyDec, error) {
1919
params, err := k.Params.Get(ctx)
2020
if err != nil {
2121
return math.LegacyZeroDec(), err
22+
} else if params.GasRefundRatio.IsNil() {
23+
return math.LegacyZeroDec(), nil
2224
}
2325

2426
return params.GasRefundRatio, nil

0 commit comments

Comments
 (0)