Co-authored-by: User <user@example.com> Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
14 lines
412 B
Go
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
|
|
}
|