forked from JackalLabs/canine-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
store.go
24 lines (19 loc) · 746 Bytes
/
store.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package v2
import (
"github.com/MonikaCat/canine-chain/v2/x/rns/types"
sdk "github.com/cosmos/cosmos-sdk/types"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
// MigrateStore performs in-place store migrations from v1 to v2
// The things done here are the following:
// 1. setting up the next reason id and report id keys for existing subspaces
// 2. setting up the module params
func MigrateStore(ctx sdk.Context, paramsSubspace paramstypes.Subspace) error {
ctx.Logger().Info("MIGRATING RNS STORE V2!")
// Set the module params
params := types.NewParams()
params.DepositAccount = "jkl1t35eusvx97953uk47r3z4ckwd2prkn3fay76r8"
paramsSubspace.SetParamSet(ctx, ¶ms)
ctx.Logger().Info("DONE MIGRATING!")
return nil
}