Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
igamigo authored Jul 5, 2024
1 parent 90d3992 commit 0b4615a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,11 @@ async fn test_consume_expected_note() {
println!("Minting Asset");
execute_tx_and_sync(&mut client, tx_request.clone()).await;

// Do a transfer from first account to second account
// Consume notes with target account
let note = tx_request.expected_output_notes().first().unwrap();
let tx_template = TransactionTemplate::ConsumeNotes(to_account_id, vec![note.id()]);

println!("Executing P2ID tx without sync...");
println!("Executing consume notes tx without sync...");
let mut tx_request = client.build_transaction_request(tx_template).unwrap();
// set the note as unauthenticated
tx_request.set_unauthenticated_input_notes(vec![note.clone()]);
Expand All @@ -902,7 +902,7 @@ async fn test_consume_expected_note() {
let current_notes = unauth_client.get_input_notes(NoteFilter::Expected).unwrap();
assert!(current_notes.is_empty());

// The expected note now should be consumed
// The note now should be consumed
let current_notes = unauth_client.get_input_notes(NoteFilter::Consumed).unwrap();
assert!(!current_notes.is_empty());

Expand Down

0 comments on commit 0b4615a

Please sign in to comment.