Skip to content

Commit

Permalink
Update serialized tx sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
vicsn committed May 7, 2023
1 parent 8f3e2b4 commit 1690b3b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions synthesizer/src/vm/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down Expand Up @@ -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");
}
}

Expand Down Expand Up @@ -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");
}
}

Expand Down Expand Up @@ -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");
}
}

Expand All @@ -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");
}
}

0 comments on commit 1690b3b

Please sign in to comment.