mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
duplicate code clean up
This commit is contained in:
parent
e01b422573
commit
f87c5e8aa7
1 changed files with 1 additions and 7 deletions
|
@ -838,13 +838,7 @@ class ECashWallet extends CoinServiceAPI
|
|||
|
||||
Future<int> _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",
|
||||
|
|
Loading…
Reference in a new issue