Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizdave97 committed Feb 23, 2022
1 parent 3f25c48 commit bf2ea37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ impl IbcEvent {
}
}

pub fn channel_attributes(&self) -> Option<ChannelAttributes> {
match self.clone() {
pub fn channel_attributes(self) -> Option<ChannelAttributes> {
match self {
IbcEvent::OpenInitChannel(ev) => Some(ev.into()),
IbcEvent::OpenTryChannel(ev) => Some(ev.into()),
IbcEvent::OpenAckChannel(ev) => Some(ev.into()),
Expand Down
1 change: 1 addition & 0 deletions relayer/src/supervisor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ pub fn collect_events(
IbcEvent::OpenInitChannel(..) | IbcEvent::OpenTryChannel(..) => {
collect_event(&mut collected, event, mode.channels.enabled, || {
event
.clone()
.channel_attributes()
.map(|attr| Object::channel_from_chan_open_events(&attr, src_chain).ok())
.flatten()
Expand Down

0 comments on commit bf2ea37

Please sign in to comment.