You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document what is the purpose of the simulate flag. Since the AnteHandler type is implemented by both antehandlers and posthandlers, it would be helpful if the docs explained how antehandlers (or posthandlers) should treat the simulate flag. For example: if simulate=true should a posthandler not make any modifications to state?
The text was updated successfully, but these errors were encountered:
On a related note, this line seems confusing. Where is ctx used instead of newCtx? Is this applicable to a chained AnteHandler? Why not enforce that AnteHandlers propagate the ctx from one to the next?
Context
cosmos-sdk/types/handler.go
Lines 6 to 8 in 7799bba
Problem
No documentation exists for the
simulate
flag.Proposal
Document what is the purpose of the
simulate
flag. Since the AnteHandler type is implemented by both antehandlers and posthandlers, it would be helpful if the docs explained how antehandlers (or posthandlers) should treat the simulate flag. For example: ifsimulate=true
should a posthandler not make any modifications to state?The text was updated successfully, but these errors were encountered: