File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
transactions/src/services Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,6 @@ impl TxAttributesType {
159
159
. unwrap_or_default ( )
160
160
. to_owned ( ) ;
161
161
162
- tracing:: error!( "{}" , timeout_timestamp) ;
163
-
164
162
Some ( Self :: SendPacket ( SendPacket {
165
163
source_port,
166
164
dest_port,
Original file line number Diff line number Diff line change @@ -311,6 +311,16 @@ impl InnerTransaction {
311
311
pub fn was_successful ( & self ) -> bool {
312
312
self . exit_code == TransactionExitStatus :: Applied
313
313
}
314
+
315
+ pub fn is_ibc ( & self ) -> bool {
316
+ matches ! (
317
+ self . kind,
318
+ TransactionKind :: IbcMsgTransfer ( _)
319
+ | TransactionKind :: IbcTrasparentTransfer ( _)
320
+ | TransactionKind :: IbcUnshieldingTransfer ( _)
321
+ | TransactionKind :: IbcShieldingTransfer ( _)
322
+ )
323
+ }
314
324
}
315
325
316
326
#[ derive( Debug , Clone ) ]
Original file line number Diff line number Diff line change @@ -15,14 +15,7 @@ pub fn get_ibc_packets(
15
15
let mut ibc_txs = inner_txs
16
16
. iter ( )
17
17
. filter_map ( |tx| {
18
- if matches ! (
19
- tx. kind,
20
- TransactionKind :: IbcMsgTransfer ( Some ( _) )
21
- | TransactionKind :: IbcTrasparentTransfer ( _)
22
- | TransactionKind :: IbcUnshieldingTransfer ( _)
23
- | TransactionKind :: IbcShieldingTransfer ( _)
24
- ) && tx. was_successful ( )
25
- {
18
+ if tx. is_ibc ( ) && tx. was_successful ( ) {
26
19
Some ( tx. tx_id . clone ( ) )
27
20
} else {
28
21
None
You can’t perform that action at this time.
0 commit comments