Skip to content

Commit

Permalink
Fix split_transaction_size test
Browse files Browse the repository at this point in the history
  • Loading branch information
raychu86 committed Mar 22, 2024
1 parent b00dcad commit bb9bf60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synthesizer/src/vm/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ mod tests {
vm.execute(&caller_private_key, ("credits.aleo", "split"), inputs, None, 0, None, rng).unwrap();

// Ensure the transaction is a split transition.
assert_eq!(transaction.transitions().count(), 2);
assert!(transaction.transitions().take(1).next().unwrap().is_split());
assert_eq!(transaction.transitions().count(), 1);
assert!(transaction.transitions().next().unwrap().is_split());

// Assert the size of the transaction.
let transaction_size_in_bytes = transaction.to_bytes_le().unwrap().len();
Expand Down

0 comments on commit bb9bf60

Please sign in to comment.