File tree Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,15 @@ and this project adheres to
67
67
` ConversionOverflowError ` and ` DivideByZeroError ` . ([ #1896 ] )
68
68
- cosmwasm-std: Remove old IBC version and make v3 the default. ([ #1875 ] )
69
69
- cosmwasm-storage: Removed, use [ cw-storage-plus] instead. ([ #1936 ] )
70
+ - cosmwasm-std: Remove ` IbcReceiveResponse ` 's ` Default ` implementation. Use
71
+ ` IbcReceiveResponse::new ` instead. ([ #1942 ] )
70
72
71
73
[ cw-storage-plus ] : https://github.com/CosmWasm/cw-storage-plus
72
74
[ #1875 ] : https://github.com/CosmWasm/cosmwasm/pull/1875
73
75
[ #1890 ] : https://github.com/CosmWasm/cosmwasm/pull/1890
74
76
[ #1896 ] : https://github.com/CosmWasm/cosmwasm/pull/1896
75
77
[ #1936 ] : https://github.com/CosmWasm/cosmwasm/pull/1936
78
+ [ #1942 ] : https://github.com/CosmWasm/cosmwasm/pull/1942
76
79
77
80
## [ 1.5.0] - 2023-10-31
78
81
Original file line number Diff line number Diff line change @@ -107,12 +107,15 @@ major releases of `cosmwasm`. Note that you can also view the
107
107
+const item: Item<Uint128> = Item::new("item");
108
108
```
109
109
110
- - Replace all uses of ` IbcReceiveResponse::set_ack ` with calls to
111
- ` IbcReceiveResponse::new ` :
110
+ - Replace all uses of ` IbcReceiveResponse::set_ack ` and
111
+ ` IbcReceiveResponse::default ` with calls to ` IbcReceiveResponse:: new` :
112
112
113
113
``` diff
114
- - Ok(IbcReceiveResponse::new().set_ack(b"{}"))
115
- + Ok(IbcReceiveResponse::new(b"{}"))
114
+ -Ok(IbcReceiveResponse::new().set_ack(b"{}"))
115
+ +Ok(IbcReceiveResponse::new(b"{}"))
116
+
117
+ -Ok(IbcReceiveResponse::default())
118
+ +Ok(IbcReceiveResponse::new(b""))
116
119
```
117
120
118
121
## 1.4.x -> 1.5.0
Original file line number Diff line number Diff line change @@ -623,18 +623,6 @@ pub struct IbcReceiveResponse<T = Empty> {
623
623
pub events : Vec < Event > ,
624
624
}
625
625
626
- // Custom implementation in order to implement it for all `T`, even if `T` is not `Default`.
627
- impl < T > Default for IbcReceiveResponse < T > {
628
- fn default ( ) -> Self {
629
- IbcReceiveResponse {
630
- acknowledgement : Binary :: default ( ) ,
631
- messages : vec ! [ ] ,
632
- attributes : vec ! [ ] ,
633
- events : vec ! [ ] ,
634
- }
635
- }
636
- }
637
-
638
626
impl < T > IbcReceiveResponse < T > {
639
627
/// Create a new response with the given acknowledgement.
640
628
///
You can’t perform that action at this time.
0 commit comments