mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
Support subaddresses as change outputs
This commit is contained in:
@@ -254,10 +254,11 @@ macro_rules! test {
|
||||
rct_type,
|
||||
outgoing_view,
|
||||
Change::new(
|
||||
&ViewPair::new(
|
||||
ViewPair::new(
|
||||
&Scalar::random(&mut OsRng) * ED25519_BASEPOINT_TABLE,
|
||||
Zeroizing::new(Scalar::random(&mut OsRng))
|
||||
).unwrap(),
|
||||
None,
|
||||
),
|
||||
rpc.get_fee_rate(FeePriority::Unimportant).await.unwrap(),
|
||||
);
|
||||
@@ -267,6 +268,8 @@ macro_rules! test {
|
||||
#[cfg(feature = "multisig")]
|
||||
let keys = keys.clone();
|
||||
|
||||
assert_eq!(&SignableTransaction::read(&mut tx.serialize().as_slice()).unwrap(), &tx);
|
||||
|
||||
let eventuality = Eventuality::from(tx.clone());
|
||||
|
||||
let tx = if !multisig {
|
||||
|
||||
Reference in New Issue
Block a user