Skip to content

Commit

Permalink
chore: use matches!
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen committed Dec 10, 2024
1 parent eec9868 commit 0c7eb99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions state-chain/runtime/src/chainflip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,12 @@ impl TransactionBuilder<Solana, SolanaApi<SolEnvironment>> for SolanaTransaction
) -> <Solana as Chain>::Transaction {
SolanaTransactionData {
serialized_transaction: signed_call.chain_encoded(),
skip_preflight: match signed_call.call_type {
// skip_preflight when broadcasting ccm transfers to consume the nonce even if the
// transaction reverts
SolanaTransactionType::CcmTransfer { fallback: _ } => true,
_ => false,
},
// skip_preflight when broadcasting ccm transfers to consume the nonce even if the
// transaction reverts
skip_preflight: matches!(
signed_call.call_type,
SolanaTransactionType::CcmTransfer { .. }
),
}
}

Expand Down

0 comments on commit 0c7eb99

Please sign in to comment.