osmosis-labs / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
14 stars 31 forks source link

fix: events are not emitted after proposal gets handled #465

Closed iboss-ptk closed 1 year ago

iboss-ptk commented 1 year ago

Closes #466

What is the purpose of the change

Due to https://github.com/osmosis-labs/cosmos-sdk/pull/384 which makes writeCache omit emitting events, gov EndBlockers does not emit events after proposal handled. This PR fix the issue by manually re-emitting events from cache context.