refactor(x/auth/ante): migrate antehandlers to use execmode#19161
Conversation
| // performance benefits, but it'll be more difficult to get right. | ||
| anteCtx, msCache = app.cacheTxContext(ctx, txBytes) | ||
| anteCtx = anteCtx.WithEventManager(sdk.NewEventManager()) | ||
| if mode == execModeSimulate { | ||
| anteCtx = anteCtx.WithExecMode(sdk.ExecMode(execModeSimulate)) | ||
| } | ||
| newCtx, err := app.anteHandler(anteCtx, tx, mode == execModeSimulate) |
There was a problem hiding this comment.
Change potentially affects state.
Call sequence:
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).runTx (baseapp/baseapp.go:814)
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).deliverTx (baseapp/baseapp.go:744)
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).internalFinalizeBlock (baseapp/baseapp.go:713)
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).FinalizeBlock (baseapp/baseapp.go:874)
WalkthroughThe overall change involves a transition in the codebase from using specific boolean fields ( 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 your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
alexanderbez
left a comment
There was a problem hiding this comment.
Nice work, thanks @tac0turtle
Description
This pr migrates antehandlers to use execmode from context instead of the passed simulate
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...