feat(x/authz): add limits to grant pruning and enable message to aid manually#18737
feat(x/authz): add limits to grant pruning and enable message to aid manually#18737julienrbrt merged 6 commits intomainfrom
Conversation
WalkthroughThe Cosmos Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
alexanderbez
left a comment
There was a problem hiding this comment.
LGTM! I just have 1 question
| sdkCtx := sdk.UnwrapSDKContext(ctx) | ||
| _ = sdkCtx.EventManager().EmitTypedEvent(&authz.EventPruneExpiredGrants{Pruner: msg.Pruner}) |
There was a problem hiding this comment.
Consider checking for errors when emitting events with EmitTypedEvent. Even though it's not common for this function to return an error, handling the error can be important for auditing and debugging purposes, ensuring that all events are emitted successfully or that failures are noted.
sdkCtx := sdk.UnwrapSDKContext(ctx)
if err := sdkCtx.EventManager().EmitTypedEvent(&authz.EventPruneExpiredGrants{Pruner: msg.Pruner}); err != nil {
return nil, err
}This is a partial backport of cosmos#18737. Txs and events were not migrated. AutoCLI was not migrated because it does not exist on v47.
…manually (#442) * feat(x/authz): add limits to grant pruning and enable message to aid manually (cosmos#18737) * cl * updates * resolve test
…manually (celestiaorg#442) * feat(x/authz): add limits to grant pruning and enable message to aid manually (cosmos#18737) remove creation of permenant and perioidic
…manually (cosmos#442) * feat(x/authz): add limits to grant pruning and enable message to aid manually (cosmos#18737) * cl * updates * resolve test
Description
A-3
Replicates #18047 for x/authz.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!in the type prefix if API or client breaking changeCHANGELOG.mdReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...