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

Distribution submsg don't return any events #114

Open
ulbqb opened this issue Jan 3, 2024 · 1 comment
Open

Distribution submsg don't return any events #114

ulbqb opened this issue Jan 3, 2024 · 1 comment

Comments

@ulbqb
Copy link
Member

ulbqb commented Jan 3, 2024

I couldn't get events of SetWithdrawAddress and WithdrawDelegatorReward in reply. There are events of SetWithdrawAddress in a transaction result, but contracts can't get it in reply.

https://github.com/ulbqb/finschia-wasmd-issue114/blob/9743a5ce4014226e66ef949db85c0b74d8476847/contracts/delegator/src/contract.rs#L116
The number of events is 0.

mini repro
https://github.com/ulbqb/finschia-wasmd-issue114

@loloicci
Copy link

loloicci commented Jan 15, 2024

Events from other than x/wasm look discarded in https://github.com/CosmWasm/wasmd/blob/07c8beea006cd009e0c7b865fb32753f61221e1b/x/wasm/keeper/msg_dispatcher.go#L117.
This is inconsistent with the comment https://github.com/CosmWasm/cosmwasm/blob/1ce73c6b91466fc46e8b574e381cdaa1fb0b298e/packages/std/src/results/submessages.rs#L204.
We asked about this upstream. (CosmWasm/cosmwasm#1995)

@loloicci loloicci self-assigned this Jan 15, 2024
@loloicci loloicci removed their assignment Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants