From f87c5e8aa788a598188f81315aa848ca9ab18acb Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 17 Apr 2023 09:47:51 -0600 Subject: [PATCH] duplicate code clean up --- lib/services/coins/ecash/ecash_wallet.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/services/coins/ecash/ecash_wallet.dart b/lib/services/coins/ecash/ecash_wallet.dart index bf83496fc..7a51ff2c8 100644 --- a/lib/services/coins/ecash/ecash_wallet.dart +++ b/lib/services/coins/ecash/ecash_wallet.dart @@ -838,13 +838,7 @@ class ECashWallet extends CoinServiceAPI Future _getTxCount({required isar_models.Address address}) async { try { - final response = await electrumXClient.getHistory( - scripthash: AddressUtils.convertToScriptHash( - address.value, - _network, - ), - ); - return response.length; + return await getTxCount(address: address.value); } catch (e, s) { Logging.instance.log( "Exception rethrown in _getTxCount(address: $address: $e\n$s",