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 {
|
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",
|
||||||
|
|
Loading…
Reference in a new issue