Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: start using KVStoreService #146

Merged
merged 3 commits into from
Aug 6, 2024
Merged

refactor: start using KVStoreService #146

merged 3 commits into from
Aug 6, 2024

Conversation

ivivanov
Copy link
Collaborator

No description provided.

@ivivanov ivivanov force-pushed the stores_refactoring branch from 5c5c1f9 to a49958f Compare July 17, 2024 09:25
@ivivanov ivivanov force-pushed the stores_refactoring branch 4 times, most recently from c583051 to fd0e227 Compare July 18, 2024 06:59
@Lockwarr Lockwarr mentioned this pull request Aug 1, 2024
@@ -33,8 +33,8 @@ func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdatePara
return nil, errors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.authority, req.Authority)
}

ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.SetParams(ctx, req.Params); err != nil {
sdkCtx := sdk.UnwrapSDKContext(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to unwrapSDKContext here I think

var p types.Params
b, err := store.Get(types.ParamsKey)
if err != nil {
// TODO panic("error getting stored tax params")
Copy link
Contributor

@Lockwarr Lockwarr Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODOs

@ivivanov ivivanov force-pushed the stores_refactoring branch from fd0e227 to a1ca02e Compare August 6, 2024 13:33
@ivivanov ivivanov merged commit d3703c8 into main Aug 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants