-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package fixstrays | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" | ||
"github.com/jackalLabs/canine-chain/x/storage/types" | ||
) | ||
|
||
// MigrateStore performs in-place store migrations from v2 to v3 | ||
// 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().Error("MIGRATING STORAGE STORE!") | ||
// Set the module params | ||
|
||
var params types.Params | ||
|
||
paramsSubspace.GetParamSet(ctx, ¶ms) | ||
|
||
params.ProofWindow = 50 | ||
|
||
paramsSubspace.SetParamSet(ctx, ¶ms) | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters