Skip to content

Commit

Permalink
chore: fix warning in consensus test (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware authored Oct 27, 2024
1 parent 451a444 commit 8535ee9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/papyrus_protobuf/src/converters/consensus_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,8 @@ fn convert_proposal_part_to_vec_u8_and_back() {

let mut proposal_part = ProposalPart::get_test_instance(&mut rng);

match proposal_part {
ProposalPart::Transactions(ref mut transaction_batch) => {
add_gas_values_to_transaction(&mut transaction_batch.transactions);
}
_ => {}
if let ProposalPart::Transactions(ref mut transaction_batch) = proposal_part {
add_gas_values_to_transaction(&mut transaction_batch.transactions);
}

let bytes_data: Vec<u8> = proposal_part.clone().into();
Expand Down

0 comments on commit 8535ee9

Please sign in to comment.