Finschia / wasmd

Basic cosmos-sdk app with web assembly smart contracts
Other
1 stars 9 forks source link

Distribution submsg don't return any events #114

Open ulbqb opened 9 months ago

ulbqb commented 9 months ago

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 commented 8 months ago

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. (https://github.com/CosmWasm/cosmwasm/issues/1995)