From 1690b3b9abffd97ca77da6bc7b38ee1cb26331e2 Mon Sep 17 00:00:00 2001 From: Victor Sint Nicolaas Date: Mon, 8 May 2023 00:12:37 +0200 Subject: [PATCH] Update serialized tx sizes --- synthesizer/src/vm/execute.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/synthesizer/src/vm/execute.rs b/synthesizer/src/vm/execute.rs index b5a070969c..05a457f492 100644 --- a/synthesizer/src/vm/execute.rs +++ b/synthesizer/src/vm/execute.rs @@ -203,13 +203,13 @@ mod tests { // Assert the size of the transaction. let transaction_size_in_bytes = transaction.to_bytes_le().unwrap().len(); - assert_eq!(1389, transaction_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(1385, transaction_size_in_bytes, "Update me if serialization has changed"); // Assert the size of the execution. assert!(matches!(transaction, Transaction::Execute(_, _, _))); if let Transaction::Execute(_, execution, _) = &transaction { let execution_size_in_bytes = execution.to_bytes_le().unwrap().len(); - assert_eq!(1354, execution_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(1350, execution_size_in_bytes, "Update me if serialization has changed"); } } @@ -243,13 +243,13 @@ mod tests { // Assert the size of the transaction. let transaction_size_in_bytes = transaction.to_bytes_le().unwrap().len(); - assert_eq!(2598, transaction_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(2590, transaction_size_in_bytes, "Update me if serialization has changed"); // Assert the size of the execution. assert!(matches!(transaction, Transaction::Execute(_, _, _))); if let Transaction::Execute(_, execution, _) = &transaction { let execution_size_in_bytes = execution.to_bytes_le().unwrap().len(); - assert_eq!(2563, execution_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(2555, execution_size_in_bytes, "Update me if serialization has changed"); } } @@ -278,13 +278,13 @@ mod tests { // Assert the size of the transaction. let transaction_size_in_bytes = transaction.to_bytes_le().unwrap().len(); - assert_eq!(2483, transaction_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(2475, transaction_size_in_bytes, "Update me if serialization has changed"); // Assert the size of the execution. assert!(matches!(transaction, Transaction::Execute(_, _, _))); if let Transaction::Execute(_, execution, _) = &transaction { let execution_size_in_bytes = execution.to_bytes_le().unwrap().len(); - assert_eq!(2448, execution_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(2440, execution_size_in_bytes, "Update me if serialization has changed"); } } @@ -312,13 +312,13 @@ mod tests { // Assert the size of the transaction. let transaction_size_in_bytes = transaction.to_bytes_le().unwrap().len(); - assert_eq!(2495, transaction_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(2487, transaction_size_in_bytes, "Update me if serialization has changed"); // Assert the size of the execution. assert!(matches!(transaction, Transaction::Execute(_, _, _))); if let Transaction::Execute(_, execution, _) = &transaction { let execution_size_in_bytes = execution.to_bytes_le().unwrap().len(); - assert_eq!(2460, execution_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(2452, execution_size_in_bytes, "Update me if serialization has changed"); } } @@ -341,6 +341,6 @@ mod tests { // Assert the size of the transition. let fee_size_in_bytes = fee.to_bytes_le().unwrap().len(); - assert_eq!(2250, fee_size_in_bytes, "Update me if serialization has changed"); + assert_eq!(2242, fee_size_in_bytes, "Update me if serialization has changed"); } }