Skip to content

Events Duplicated on Multi-Msg Txs #5200

Closed
@alexanderbez

Description

@alexanderbez

Summary of Bug

A tx with multiple messages will have events duplicated. e.g. for a tx with two messages, the 2nd message will have events for the 1st message in addition to its own events.

Each handler sets a new event manager so it's not immediately clear how or why this happens.

Version

v0.37.3

Steps to Reproduce

Submit a tx with at least two messages, and you'll see something like the following:

               { 
                     "type":"withdraw_rewards",
                     "attributes":[ 
                        { 
                           "key":"amount",
                           "value":"107muon"
                        },
                        { 
                           "key":"validator",
                           "value":"cosmosvaloper1wtv0kp6ydt03edd8kyr5arr4f3yc52vp3u2x3u"
                        },
                        { 
                           "key":"amount",
                           "value":"80719596muon"
                        },
                        { 
                           "key":"validator",
                           "value":"cosmosvaloper1msz843gguwhqx804cdc97n22c4lllfkk5352lt"
                        }
                     ]
                  }

which should be:

               { 
                     "type":"withdraw_rewards",
                     "attributes":[ 
                        { 
                           "key":"amount",
                           "value":"80719596muon"
                        },
                        { 
                           "key":"validator",
                           "value":"cosmosvaloper1msz843gguwhqx804cdc97n22c4lllfkk5352lt"
                        }
                     ]
                  }

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions