Skip to content

Commit

Permalink
fix: revert event test (#847)
Browse files Browse the repository at this point in the history
Revert some accidental changes to crates/papyrus_protobuf/src/converters/event_test.rs
  • Loading branch information
guy-starkware authored Sep 19, 2024
1 parent f725bc7 commit 1b6d4b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/papyrus_protobuf/src/converters/event_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ fn convert_event_to_vec_u8_and_back() {
let transaction_hash = TransactionHash::get_test_instance(&mut rng);

let data = DataOrFin(Some((event, transaction_hash)));
let res_data = DataOrFin::try_from(data.clone()).unwrap();
let bytes_data = Vec::<u8>::from(data.clone());
let res_data = DataOrFin::try_from(bytes_data).unwrap();
assert_eq!(data, res_data);
}

Expand Down

0 comments on commit 1b6d4b1

Please sign in to comment.