Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events Duplicated on Multi-Msg Txs #5200

Closed
4 tasks done
alexanderbez opened this issue Oct 15, 2019 · 0 comments · Fixed by #5208
Closed
4 tasks done

Events Duplicated on Multi-Msg Txs #5200

alexanderbez opened this issue Oct 15, 2019 · 0 comments · Fixed by #5208
Assignees
Labels

Comments

@alexanderbez
Copy link
Contributor

alexanderbez commented Oct 15, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant