[Bug]: state changes during posthandler are ignored if tx is failed #22396
Labels
S:needs more info
This bug can't be addressed until more information is provided by the reporter.
T:Bug
Is there an existing issue for this?
What happened?
If tx failed, all state changes during post handler are trashed.
This is normal if there is no input
err == nil
onposthandler
call, but there is. SDK users may think this post handler can update state to handle tx failure actions due to that inputs. not sure the intension of that field.If your intension is allowing sdk users to do update state during posthandler to handle tx failure, then please write the state changes on post handler even tx is failed.
Cosmos SDK Version
v0.50
How to reproduce?
No response
The text was updated successfully, but these errors were encountered: