From 1b6d4b1fb8341eda464f5de744a2581b2be7451d Mon Sep 17 00:00:00 2001 From: guy-starkware Date: Thu, 19 Sep 2024 00:56:08 -0700 Subject: [PATCH] fix: revert event test (#847) Revert some accidental changes to crates/papyrus_protobuf/src/converters/event_test.rs --- crates/papyrus_protobuf/src/converters/event_test.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/papyrus_protobuf/src/converters/event_test.rs b/crates/papyrus_protobuf/src/converters/event_test.rs index c9dcdeadf0..4a0a3cce58 100644 --- a/crates/papyrus_protobuf/src/converters/event_test.rs +++ b/crates/papyrus_protobuf/src/converters/event_test.rs @@ -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::::from(data.clone()); + let res_data = DataOrFin::try_from(bytes_data).unwrap(); assert_eq!(data, res_data); }