-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
👍 apologies |
This PR modifies the
sdk.Context
to support passing in the EventManager as an interface. This is useful for chains who want to add custom event behaviour to their application.