test: get_internal_address LastUnused

This commit is contained in:
Ed Ball
2023-02-01 14:43:22 +01:00
parent 85f8a8a526
commit 11d7d6b80f

View File

@@ -575,6 +575,14 @@ mod test {
"bcrt1q0xs7dau8af22rspp4klya4f7lhggcnqfun2y3a"
);
assert_eq!(
wallet
.get_address(crate::AddressIndex::LastUnused)
.unwrap()
.address,
"bcrt1q0xs7dau8af22rspp4klya4f7lhggcnqfun2y3a"
);
assert_eq!(
wallet
.get_internal_address(crate::AddressIndex::New)
@@ -590,5 +598,13 @@ mod test {
.address,
"bcrt1qaux734vuhykww9632v8cmdnk7z2mw5lsf74v6k"
);
assert_eq!(
wallet
.get_internal_address(crate::AddressIndex::LastUnused)
.unwrap()
.address,
"bcrt1qpmz73cyx00r4a5dea469j40ax6d6kqyd67nnpj"
);
}
}