Skip to content

Commit

Permalink
fix clippy lint
Browse files Browse the repository at this point in the history
Signed-off-by: ozkanonur <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Dec 2, 2022
1 parent 452fc50 commit dd2a0f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions mm2src/coins/my_tx_history_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,11 @@ where
// TODO
// !! temporary solution !!
// Tendermint specific mapping
// By-passed only when `CustomTendermintMsg` is `FeeForTokenTx`
// By-passed when `CustomTendermintMsg` is `FeeForTokenTx`
match &details.transaction_type {
TransactionType::CustomTendermintMsg { msg_type, .. }
if matches!(msg_type, CustomTendermintMsgType::FeeForTokenTx) => {},
TransactionType::StakingDelegation
| TransactionType::RemoveDelegation
| TransactionType::StandardTransfer
TransactionType::StandardTransfer
| TransactionType::TokenTransfer(_)
| TransactionType::CustomTendermintMsg { .. } => {
// TODO
Expand Down Expand Up @@ -491,6 +489,7 @@ where
_ => {},
};
},
_ => {},
};

let confirmations = if details.block_height == 0 || details.block_height > current_block {
Expand Down
4 changes: 2 additions & 2 deletions mm2src/coins/tendermint/tendermint_tx_history_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,13 +532,13 @@ where
match transfer_details.transfer_event_type {
TransferEventType::CreateHtlc => {
if tx_sent_by_me {
Some((vec![my_address.clone()], vec![]))
Some((vec![my_address], vec![]))
} else {
// This shouldn't happen if rpc node properly executes the tx search query.
None
}
},
TransferEventType::ClaimHtlc => Some((vec![my_address.clone()], vec![])),
TransferEventType::ClaimHtlc => Some((vec![my_address], vec![])),
TransferEventType::Standard => {
Some((vec![transfer_details.from.clone()], vec![transfer_details.to.clone()]))
},
Expand Down

0 comments on commit dd2a0f2

Please sign in to comment.