duplicate code clean up

This commit is contained in:
julian 2023-04-17 09:47:51 -06:00
parent e01b422573
commit f87c5e8aa7

View file

@ -838,13 +838,7 @@ class ECashWallet extends CoinServiceAPI
Future<int> _getTxCount({required isar_models.Address address}) async { Future<int> _getTxCount({required isar_models.Address address}) async {
try { try {
final response = await electrumXClient.getHistory( return await getTxCount(address: address.value);
scripthash: AddressUtils.convertToScriptHash(
address.value,
_network,
),
);
return response.length;
} catch (e, s) { } catch (e, s) {
Logging.instance.log( Logging.instance.log(
"Exception rethrown in _getTxCount(address: $address: $e\n$s", "Exception rethrown in _getTxCount(address: $address: $e\n$s",