@@ -207,11 +207,11 @@ pub struct SubMsgResponse {
207
207
#[ deprecated = "deprecated in the cosmos-sdk in favor of msg_responses" ]
208
208
pub data : Option < Binary > ,
209
209
#[ serde( default ) ]
210
- pub msg_responses : Vec < MsgResponseValue > ,
210
+ pub msg_responses : Vec < MsgResponse > ,
211
211
}
212
212
213
213
#[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
214
- pub struct MsgResponseValue {
214
+ pub struct MsgResponse {
215
215
pub type_url : String ,
216
216
pub value : Binary ,
217
217
}
@@ -236,7 +236,7 @@ mod tests {
236
236
237
237
let result = SubMsgResult :: Ok ( SubMsgResponse {
238
238
data : Some ( Binary :: from_base64 ( "MTIzCg==" ) . unwrap ( ) ) ,
239
- msg_responses : vec ! [ MsgResponseValue {
239
+ msg_responses : vec ! [ MsgResponse {
240
240
type_url: "URL" . to_string( ) ,
241
241
value: Binary :: from_base64( "MTIzCg==" ) . unwrap( ) ,
242
242
} ] ,
@@ -272,7 +272,7 @@ mod tests {
272
272
result,
273
273
SubMsgResult :: Ok ( SubMsgResponse {
274
274
data: Some ( Binary :: from_base64( "MTIzCg==" ) . unwrap( ) ) ,
275
- msg_responses: vec![ MsgResponseValue {
275
+ msg_responses: vec![ MsgResponse {
276
276
type_url: "URL" . to_string( ) ,
277
277
value: Binary :: from_base64( "MTIzCg==" ) . unwrap( ) ,
278
278
} ] ,
@@ -300,7 +300,7 @@ mod tests {
300
300
fn sub_msg_result_unwrap_works ( ) {
301
301
let response = SubMsgResponse {
302
302
data : Some ( Binary :: from_base64 ( "MTIzCg==" ) . unwrap ( ) ) ,
303
- msg_responses : vec ! [ MsgResponseValue {
303
+ msg_responses : vec ! [ MsgResponse {
304
304
type_url: "URL" . to_string( ) ,
305
305
value: Binary :: from_base64( "MTIzCg==" ) . unwrap( ) ,
306
306
} ] ,
0 commit comments