Skip to content

Commit

Permalink
this value transfer shouldn't have a recipient, but this might be a t…
Browse files Browse the repository at this point in the history
…est artifact?
  • Loading branch information
zancas committed Nov 30, 2024
1 parent 513c8f2 commit 4256e88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions libtonode-tests/tests/concrete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,14 @@ mod fast {
.len(),
3usize
);
let val_tranfers = dbg!(sender.sorted_value_transfers(true).await);
let val_tranfers = sender.sorted_value_transfers(true).await;
// This fails, as we don't scan sends to tex correctly yet
let first_vt = dbg!(val_tranfers[0].clone());
assert_eq!(
val_tranfers[0].recipient_address().unwrap(),
first_vt.recipient_address().unwrap(),
tex_addr_from_first.encode()
);
panic!("The first value transfer is the receipt from the faucet!!");
}
}

Expand Down
2 changes: 1 addition & 1 deletion zingolib/src/wallet/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ pub mod summaries {

/// A value transfer is a note group abstraction.
/// A group of all notes sent to a specific address in a transaction.
#[derive(PartialEq)]
#[derive(Clone, PartialEq)]
pub struct ValueTransfer {
txid: TxId,
datetime: u64,
Expand Down

0 comments on commit 4256e88

Please sign in to comment.