From f75309ad072ff7920c665ff48fb6ca233cf897be Mon Sep 17 00:00:00 2001 From: Brendon Fish Date: Fri, 17 May 2024 12:30:26 -0400 Subject: [PATCH] fix build --- src/testing/basic_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/basic_test.rs b/src/testing/basic_test.rs index 647721e6..0f44ab7f 100644 --- a/src/testing/basic_test.rs +++ b/src/testing/basic_test.rs @@ -130,8 +130,8 @@ mod tests { // generate num_test messages for each type and send it to the respective channels; for i in 0..num_test_messages as u32 { // Prepare the transaction message - let tx = TestTransaction(vec![i as u8]); - let encoded_transactions = TestTransaction::encode(&[tx.clone()]).unwrap(); + let tx = TestTransaction::new(vec![i as u8]); + let encoded_transactions = TestTransaction::encode(&[tx.clone()]); let stx_msg = TransactionMessage:: { txns: vec![tx.clone()],