fix: undepeprecate Event methods (#25342)
This commit is contained in:
parent
1a5c57b13d
commit
d259c9287a
@ -58,6 +58,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
|
||||
### Improvements
|
||||
|
||||
* (types) [#25342](https://github.com/cosmos/cosmos-sdk/pull/25342) Undeprecated `EmitEvent` and `EmitEvents` on the `EventManager`. These functions will continue to be maintained.
|
||||
* (types) [#24668](https://github.com/cosmos/cosmos-sdk/pull/24668) Scope the global config to a particular binary so that multiple SDK binaries can be properly run on the same machine.
|
||||
* (baseapp) [#24655](https://github.com/cosmos/cosmos-sdk/pull/24655) Add mutex locks for `state` and make `lastCommitInfo` atomic to prevent race conditions between `Commit` and `CreateQueryContext`.
|
||||
* (proto) [#24161](https://github.com/cosmos/cosmos-sdk/pull/24161) Remove unnecessary annotations from `x/staking` authz proto.
|
||||
|
||||
@ -43,13 +43,11 @@ func NewEventManager() *EventManager {
|
||||
func (em *EventManager) Events() Events { return em.events }
|
||||
|
||||
// EmitEvent stores a single Event object.
|
||||
// Deprecated: Use EmitTypedEvent
|
||||
func (em *EventManager) EmitEvent(event Event) {
|
||||
em.events = em.events.AppendEvent(event)
|
||||
}
|
||||
|
||||
// EmitEvents stores a series of Event objects.
|
||||
// Deprecated: Use EmitTypedEvents
|
||||
func (em *EventManager) EmitEvents(events Events) {
|
||||
em.events = em.events.AppendEvents(events)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user