@@ -18,10 +18,7 @@ pub struct NotSupportMessage {
18
18
impl SerializeJson for NotSupportMessage {
19
19
fn to_json ( & self ) -> Result < Value , CosmosError > {
20
20
let value = serde_json:: to_value ( self ) . map_err ( |err| {
21
- CosmosError :: ParseTxError ( format ! (
22
- "NotSupportMessage serialize failed {}" ,
23
- err
24
- ) )
21
+ CosmosError :: ParseTxError ( format ! ( "NotSupportMessage serialize failed {}" , err) )
25
22
} ) ?;
26
23
let msg = json ! ( {
27
24
"type" : Value :: String ( Self :: TYPE_URL . to_string( ) ) ,
@@ -159,10 +156,7 @@ impl TryFrom<&proto::cosmos::staking::v1beta1::MsgUndelegate> for MsgUndelegate
159
156
impl SerializeJson for MsgUndelegate {
160
157
fn to_json ( & self ) -> Result < Value , CosmosError > {
161
158
let value = serde_json:: to_value ( self ) . map_err ( |err| {
162
- CosmosError :: ParseTxError ( format ! (
163
- "MsgUndelegate serialize failed {}" ,
164
- err
165
- ) )
159
+ CosmosError :: ParseTxError ( format ! ( "MsgUndelegate serialize failed {}" , err) )
166
160
} ) ?;
167
161
let msg = json ! ( {
168
162
"type" : Value :: String ( Self :: TYPE_URL . to_string( ) ) ,
@@ -305,9 +299,9 @@ impl TryFrom<&proto::ibc::applications::transfer::v1::MsgTransfer> for MsgTransf
305
299
} ;
306
300
307
301
let timeout_height: Option < Height > = proto. timeout_height . as_ref ( ) . map ( |height| Height {
308
- revision_number : Some ( height. revision_number ) ,
309
- revision_height : Some ( height. revision_height ) ,
310
- } ) ;
302
+ revision_number : Some ( height. revision_number ) ,
303
+ revision_height : Some ( height. revision_height ) ,
304
+ } ) ;
311
305
312
306
Ok ( MsgTransfer {
313
307
source_port : proto. source_port . clone ( ) ,
@@ -405,10 +399,7 @@ impl TryFrom<&proto::ibc::core::client::v1::MsgUpdateClient> for MsgUpdateClient
405
399
impl SerializeJson for MsgUpdateClient {
406
400
fn to_json ( & self ) -> Result < Value , CosmosError > {
407
401
let value = serde_json:: to_value ( self ) . map_err ( |err| {
408
- CosmosError :: ParseTxError ( format ! (
409
- "MsgUpdateClient serialize failed {}" ,
410
- err
411
- ) )
402
+ CosmosError :: ParseTxError ( format ! ( "MsgUpdateClient serialize failed {}" , err) )
412
403
} ) ?;
413
404
let msg = json ! ( {
414
405
"type" : Value :: String ( Self :: TYPE_URL . to_string( ) ) ,
@@ -454,10 +445,7 @@ impl TryFrom<&proto::cosmos::staking::v1beta1::MsgBeginRedelegate> for MsgBeginR
454
445
impl SerializeJson for MsgBeginRedelegate {
455
446
fn to_json ( & self ) -> Result < Value , CosmosError > {
456
447
let value = serde_json:: to_value ( self ) . map_err ( |err| {
457
- CosmosError :: ParseTxError ( format ! (
458
- "MsgBeginRedelegate serialize failed {}" ,
459
- err
460
- ) )
448
+ CosmosError :: ParseTxError ( format ! ( "MsgBeginRedelegate serialize failed {}" , err) )
461
449
} ) ?;
462
450
let msg = json ! ( {
463
451
"type" : Value :: String ( Self :: TYPE_URL . to_string( ) ) ,
0 commit comments