From cfcd7b7fd6cd068f6c38006462a895e21bf3704f Mon Sep 17 00:00:00 2001 From: julian <julian@cypherstack.com> Date: Mon, 27 Nov 2023 08:42:32 -0600 Subject: [PATCH] code duplication clean up --- lib/wallets/wallet/impl/firo_wallet.dart | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/wallets/wallet/impl/firo_wallet.dart b/lib/wallets/wallet/impl/firo_wallet.dart index ee8084488..671aeea27 100644 --- a/lib/wallets/wallet/impl/firo_wallet.dart +++ b/lib/wallets/wallet/impl/firo_wallet.dart @@ -62,17 +62,7 @@ class FiroWallet extends Bip39HDWallet @override Future<void> updateTransactions() async { - final allAddresses = await mainDB - .getAddresses(walletId) - .filter() - .not() - .group( - (q) => q - .typeEqualTo(AddressType.nonWallet) - .or() - .subTypeEqualTo(AddressSubType.nonWallet), - ) - .findAll(); + final allAddresses = await fetchAllOwnAddresses(); Set<String> receivingAddresses = allAddresses .where((e) => e.subType == AddressSubType.receiving)