cosmos-sdk/x/staking/migrations/v3/json.go
crStiv 64348183e7
fix: multiple typos of different importance (#24987)
Co-authored-by: User <user@example.com>
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
2025-07-24 21:22:04 +00:00

14 lines
412 B
Go

package v3
import "github.com/cosmos/cosmos-sdk/x/staking/types"
// MigrateJSON accepts exported v0.43 x/staking genesis state and migrates it to
// v0.46 x/staking genesis state. The migration includes:
//
// - Add MinCommissionRate param.
func MigrateJSON(oldState types.GenesisState) (types.GenesisState, error) {
oldState.Params.MinCommissionRate = types.DefaultMinCommissionRate
return oldState, nil
}