Skip to content

Commit

Permalink
ics04_channel: Add (de)serialization for ModuleExtras (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinji authored Mar 29, 2023
1 parent 4119d8d commit faa83d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changelog/unreleased/feature/581-remove-portreader.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add (de)serialization for `ics04_channel::handler::ModuleExtras`
([#588](https://github.com/cosmos/ibc-rs/issues/588))
13 changes: 13 additions & 0 deletions crates/ibc/src/core/ics04_channel/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ pub mod send_packet;
pub mod timeout;
pub mod timeout_on_close;

#[cfg_attr(
feature = "parity-scale-codec",
derive(
parity_scale_codec::Encode,
parity_scale_codec::Decode,
scale_info::TypeInfo
)
)]
#[cfg_attr(
feature = "borsh",
derive(borsh::BorshSerialize, borsh::BorshDeserialize)
)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Clone, Debug)]
pub struct ModuleExtras {
pub events: Vec<ModuleEvent>,
Expand Down

0 comments on commit faa83d3

Please sign in to comment.