Skip to content

[Bug]: state changes during posthandler are ignored if tx is failed #22396

Open
@beer-1

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

S:needs more infoThis bug can't be addressed until more information is provided by the reporter.T:Bug

Type

No type

Projects

  • Status

    📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions