Skip to content

Commit

Permalink
Fix module query
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanian committed Apr 30, 2020
1 parent ffb954c commit 766a86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendermint/src/rpc/event_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl JSONRPC {
action_query: &str,
) -> Result<std::collections::HashMap<String, Vec<String>>, &'static str> {
let events = &self.result.events;
if let Some(message_module) = events.get("message_module"){
if let Some(message_module) = events.get("message.module"){
if let Some(message_action) = events.get("message.action"){
if message_module.contains(&module_query.to_owned()) && message_action.contains(&action_query.to_owned()) {
return Ok(events.clone());
Expand Down

0 comments on commit 766a86d

Please sign in to comment.