Skip to content
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

Do not filter out ibc events #1

Merged

Conversation

pr0n00gler
Copy link
Collaborator

No description provided.

@@ -188,12 +188,21 @@ func redactError(err error) error {
return fmt.Errorf("codespace: %s, code: %d", codespace, code)
}

func isIBCEvent(event sdk.Event) bool {
for _, attr := range event.Attributes {
if bytes.Contains(attr.Value, []byte("ibc_")) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we expecting "ibc_" at any place of string? I mean why not HasPreffix. According to the hermes, he is subscribed only on the module key. May be leave a link to the hermes's line with events description?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@@ -295,9 +294,8 @@ func TestDispatchSubmessages(t *testing.T) {
},
expData: nil,
expCommits: []bool{true},
expEvents: []sdk.Event{sdk.NewEvent("message"), sdk.NewEvent("execute", sdk.NewAttribute("foo", "bar"))},
expEvents: []sdk.Event{sdk.NewEvent("execute", sdk.NewAttribute("foo", "bar"))},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a simple test case with an IBC related events?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@zavgorodnii zavgorodnii merged commit bc12f98 into v0.28.0-no-event-filtering Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants