refactor(context): Pass EventManager to the context as an interface.#14384
Conversation
|
Would be great to get this backported into 0.47 if possible. Didn't know where to put |
There was a problem hiding this comment.
You've made golangci mad with that deprecated comment 😅. But the changes make sense to me.
Btw i believe there is still discussion about the typed event design, so maybe the other shouldn't be marked as deprecated just yet. Don't take my word on it though I may be wrong, but the SDK does not use it for all its modules yet.
|
They were marked as deprecated on the functions themselves so I just kept it consistent in the interface. Weird it didn't flag ci before |
EventManager to the context as an interface.EventManager to the context as an interface.
EventManager to the context as an interface.EventManager to the context as an interface.
96195d9 to
c49f663
Compare
|
[Cosmos SDK] Kudos, SonarCloud Quality Gate passed! |
|
@itsdevbear please don't merge so fast, while its a simple change we should still have 2 reviewers. |
|
How was @itsdevbear able to merge? |
|
👍 apologies |








This PR modifies the
sdk.Contextto support passing in the EventManager as an interface. This is useful for chains who want to add custom event behaviour to their application.