type disambiguation

This commit is contained in:
sneurlax 2023-08-07 14:29:56 -05:00
parent 32c0c55830
commit 8eef870375

View file

@ -64,7 +64,7 @@ mixin FusionInterface {
return address.toFusionAddress();
}
Future<List<Address>> getUnusedReservedChangeAddresses(
Future<List<cash_fusion.Address>> getUnusedReservedChangeAddresses(
int numberOfAddresses,
) async {
final txns = await _db
@ -84,11 +84,11 @@ mixin FusionInterface {
.otherDataEqualTo(kReservedFusionAddress)
.findAll();
final List<Address> unusedAddresses = [];
final List<cash_fusion.Address> unusedAddresses = [];
for (final address in addresses) {
if (!usedAddresses.contains(address.value)) {
unusedAddresses.add(address);
unusedAddresses.add(address.toFusionAddress());
}
}