mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-12 22:19:26 +00:00
Have monero-wallet use Transaction<Pruned>, not Transaction
This commit is contained in:
@@ -66,7 +66,7 @@ test!(
|
||||
assert_eq!(tx.prefix().extra, eventuality.extra());
|
||||
|
||||
// The TX should match
|
||||
assert!(eventuality.matches(&tx));
|
||||
assert!(eventuality.matches(&tx.clone().into()));
|
||||
|
||||
// Mutate the TX
|
||||
let Transaction::V2 { proofs: Some(ref mut proofs), .. } = tx else {
|
||||
@@ -74,7 +74,7 @@ test!(
|
||||
};
|
||||
proofs.base.commitments[0] += ED25519_BASEPOINT_POINT;
|
||||
// Verify it no longer matches
|
||||
assert!(!eventuality.matches(&tx));
|
||||
assert!(!eventuality.matches(&tx.clone().into()));
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
@@ -289,7 +289,7 @@ macro_rules! test {
|
||||
};
|
||||
|
||||
assert_eq!(&eventuality.extra(), &tx.prefix().extra, "eventuality extra was distinct");
|
||||
assert!(eventuality.matches(&tx), "eventuality didn't match");
|
||||
assert!(eventuality.matches(&tx.clone().into()), "eventuality didn't match");
|
||||
|
||||
tx
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user