[Bug]: state changes during posthandler are ignored if tx is failed #22396
Open
Description
opened on Oct 30, 2024
Is there an existing issue for this?
- I have searched the existing issues
What happened?
If tx failed, all state changes during post handler are trashed.
This is normal if there is no input err == nil
on posthandler
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
Metadata
Assignees
Type
Projects
Status
📋 Backlog
Activity