-
Notifications
You must be signed in to change notification settings - Fork 5
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
Do not filter out ibc events #1
Conversation
x/wasm/keeper/msg_dispatcher.go
Outdated
@@ -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_")) { |
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.
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?
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.
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"))}, |
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.
add a simple test case with an IBC related events?
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.
Fixed
No description provided.