@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
77
88use crate :: coin:: Coin ;
99use crate :: prelude:: * ;
10- use crate :: results:: { Attribute , CosmosMsg , Empty , Event , SubMsg } ;
10+ use crate :: results:: { Attribute , CosmosMsg , Event , SubMsg } ;
1111use crate :: StdResult ;
1212use crate :: { to_json_binary, Binary } ;
1313use crate :: { Addr , Timestamp } ;
@@ -560,12 +560,12 @@ impl IbcPacketTimeoutMsg {
560560/// will use other Response types
561561#[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
562562#[ non_exhaustive]
563- pub struct IbcBasicResponse < T = Empty > {
563+ pub struct IbcBasicResponse {
564564 /// Optional list of messages to pass. These will be executed in order.
565565 /// If the ReplyOn member is set, they will invoke this contract's `reply` entry point
566566 /// after execution. Otherwise, they act like "fire and forget".
567567 /// Use `SubMsg::new` to create messages with the older "fire and forget" semantics.
568- pub messages : Vec < SubMsg < T > > ,
568+ pub messages : Vec < SubMsg > ,
569569 /// The attributes that will be emitted as part of a `wasm` event.
570570 ///
571571 /// More info about events (and their attributes) can be found in [*Cosmos SDK* docs].
@@ -582,7 +582,7 @@ pub struct IbcBasicResponse<T = Empty> {
582582}
583583
584584// Custom implementation in order to implement it for all `T`, even if `T` is not `Default`.
585- impl < T > Default for IbcBasicResponse < T > {
585+ impl Default for IbcBasicResponse {
586586 fn default ( ) -> Self {
587587 IbcBasicResponse {
588588 messages : vec ! [ ] ,
@@ -592,7 +592,7 @@ impl<T> Default for IbcBasicResponse<T> {
592592 }
593593}
594594
595- impl < T > IbcBasicResponse < T > {
595+ impl IbcBasicResponse {
596596 pub fn new ( ) -> Self {
597597 Self :: default ( )
598598 }
@@ -605,14 +605,14 @@ impl<T> IbcBasicResponse<T> {
605605
606606 /// This creates a "fire and forget" message, by using `SubMsg::new()` to wrap it,
607607 /// and adds it to the list of messages to process.
608- pub fn add_message ( mut self , msg : impl Into < CosmosMsg < T > > ) -> Self {
608+ pub fn add_message ( mut self , msg : impl Into < CosmosMsg > ) -> Self {
609609 self . messages . push ( SubMsg :: new ( msg) ) ;
610610 self
611611 }
612612
613613 /// This takes an explicit SubMsg (creates via e.g. `reply_on_error`)
614614 /// and adds it to the list of messages to process.
615- pub fn add_submessage ( mut self , msg : SubMsg < T > ) -> Self {
615+ pub fn add_submessage ( mut self , msg : SubMsg ) -> Self {
616616 self . messages . push ( msg) ;
617617 self
618618 }
@@ -664,7 +664,7 @@ impl<T> IbcBasicResponse<T> {
664664 /// IbcBasicResponse::new().add_messages(msgs)
665665 /// }
666666 /// ```
667- pub fn add_messages < M : Into < CosmosMsg < T > > > ( self , msgs : impl IntoIterator < Item = M > ) -> Self {
667+ pub fn add_messages < M : Into < CosmosMsg > > ( self , msgs : impl IntoIterator < Item = M > ) -> Self {
668668 self . add_submessages ( msgs. into_iter ( ) . map ( SubMsg :: new) )
669669 }
670670
@@ -679,7 +679,7 @@ impl<T> IbcBasicResponse<T> {
679679 /// IbcBasicResponse::new().add_submessages(msgs)
680680 /// }
681681 /// ```
682- pub fn add_submessages ( mut self , msgs : impl IntoIterator < Item = SubMsg < T > > ) -> Self {
682+ pub fn add_submessages ( mut self , msgs : impl IntoIterator < Item = SubMsg > ) -> Self {
683683 self . messages . extend ( msgs) ;
684684 self
685685 }
@@ -702,7 +702,7 @@ impl<T> IbcBasicResponse<T> {
702702/// and not inform the calling chain).
703703#[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
704704#[ non_exhaustive]
705- pub struct IbcReceiveResponse < T = Empty > {
705+ pub struct IbcReceiveResponse {
706706 /// The bytes we return to the contract that sent the packet.
707707 /// This may represent a success or error of execution.
708708 /// In case of `None`, no acknowledgement is written.
@@ -711,7 +711,7 @@ pub struct IbcReceiveResponse<T = Empty> {
711711 /// If the ReplyOn member is set, they will invoke this contract's `reply` entry point
712712 /// after execution. Otherwise, they act like "fire and forget".
713713 /// Use `call` or `msg.into()` to create messages with the older "fire and forget" semantics.
714- pub messages : Vec < SubMsg < T > > ,
714+ pub messages : Vec < SubMsg > ,
715715 /// The attributes that will be emitted as part of a "wasm" event.
716716 ///
717717 /// More info about events (and their attributes) can be found in [*Cosmos SDK* docs].
@@ -727,7 +727,7 @@ pub struct IbcReceiveResponse<T = Empty> {
727727 pub events : Vec < Event > ,
728728}
729729
730- impl < T > IbcReceiveResponse < T > {
730+ impl IbcReceiveResponse {
731731 /// Create a new response with the given acknowledgement.
732732 ///
733733 /// ## Examples
@@ -803,14 +803,14 @@ impl<T> IbcReceiveResponse<T> {
803803
804804 /// This creates a "fire and forget" message, by using `SubMsg::new()` to wrap it,
805805 /// and adds it to the list of messages to process.
806- pub fn add_message ( mut self , msg : impl Into < CosmosMsg < T > > ) -> Self {
806+ pub fn add_message ( mut self , msg : impl Into < CosmosMsg > ) -> Self {
807807 self . messages . push ( SubMsg :: new ( msg) ) ;
808808 self
809809 }
810810
811811 /// This takes an explicit SubMsg (creates via e.g. `reply_on_error`)
812812 /// and adds it to the list of messages to process.
813- pub fn add_submessage ( mut self , msg : SubMsg < T > ) -> Self {
813+ pub fn add_submessage ( mut self , msg : SubMsg ) -> Self {
814814 self . messages . push ( msg) ;
815815 self
816816 }
@@ -862,7 +862,7 @@ impl<T> IbcReceiveResponse<T> {
862862 /// IbcReceiveResponse::new(StdAck::success(b"\x01")).add_messages(msgs)
863863 /// }
864864 /// ```
865- pub fn add_messages < M : Into < CosmosMsg < T > > > ( self , msgs : impl IntoIterator < Item = M > ) -> Self {
865+ pub fn add_messages < M : Into < CosmosMsg > > ( self , msgs : impl IntoIterator < Item = M > ) -> Self {
866866 self . add_submessages ( msgs. into_iter ( ) . map ( SubMsg :: new) )
867867 }
868868
@@ -877,7 +877,7 @@ impl<T> IbcReceiveResponse<T> {
877877 /// IbcReceiveResponse::new(StdAck::success(b"\x01")).add_submessages(msgs)
878878 /// }
879879 /// ```
880- pub fn add_submessages ( mut self , msgs : impl IntoIterator < Item = SubMsg < T > > ) -> Self {
880+ pub fn add_submessages ( mut self , msgs : impl IntoIterator < Item = SubMsg > ) -> Self {
881881 self . messages . extend ( msgs) ;
882882 self
883883 }
0 commit comments