-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 of the same type are collapsed into one event #8419
Comments
This demo is with |
I think this is a related issue I opened a while back. I remember there being someway to make this less painful. I tried documenting things here as well. I believe typed events should make this a lot better? |
I don't think TypedEvents help here, they turn into normal abci.Events when hitting the Tendermint/ABCI boundary. It seems this mangling is done in Tendermint then? With the ResultEvent: type ResultEvent struct {
Query string `json:"query"`
Data types.TMEventData `json:"data"`
Events map[string][]string `json:"events"`
} It looks like that is the collapsing phase. I guess I need to move the issue there or commend more on your issue |
this has been fixed on the Tendermint side. Once there is a new release with the new tendermint this will be solved in the sdk. Closing this issue |
Summary of Bug
I realized how critical a functioning event system is to the future of the Cosmos, when I realized that parsing events is the only way a relayer can get the needed info to transfer packets between chains. I was wondering how robust this was, so I tested out a simpler example -
x/bank
send.I created a simple "subkeys" contract in wasm and then triggered 3
bank.Send()
calls in the same message. 1 sendings 4 MAYO into the contract, and then informing the contract to send 1.6666 MAYO to A and 2.33333 MAYO to B. I expected to see 3 different events, that could be easily parsed. What I got was this (look at the transfer event... it is 3 different bank sends collapsed into 1 event)wasmd query tx 94E935BE53D65B090B1595C8DECE5363A19F85B6F770883EA96BC1A3449EC3F4 --node https://rpc.musselnet.cosmwasm.com:443 -o json | jq .logs
Version
v0.40.1
Steps to Reproduce
Note, I am not sure if the bug is in baseapp or in tendermint. When I test the handler, this returns 3 transfer events (and the wasm event).
You should probably build wasmd from here first: https://github.com/CosmWasm/wasmd/
Here is the script I used to generate the test case, but you can also just look at those logs.
For Admin Use
The text was updated successfully, but these errors were encountered: