Fix remaining bugs in monero-wallet tests

This commit is contained in:
Luke Parker
2024-07-06 03:24:38 -04:00
parent 788c4fc0a7
commit b2c962cd3e
5 changed files with 31 additions and 33 deletions

View File

@@ -788,7 +788,7 @@ pub trait Rpc: Sync + Clone + Debug {
)
.await?
} else {
Vec::new()
vec![]
};
// TODO: https://github.com/serai-dex/serai/issues/104
@@ -811,6 +811,7 @@ pub trait Rpc: Sync + Clone + Debug {
Ok(Some([key, rpc_point(&out.mask)?]).filter(|_| {
if fingerprintable_canonical {
// TODO: Are timelock blocks by height or number?
// TODO: This doesn't check the default timelock has been passed
Timelock::Block(height) >= txs[i].prefix().additional_timelock
} else {
out.unlocked