From fae2c58c483b81674874cbd06e747a547da43bcb Mon Sep 17 00:00:00 2001 From: Vlad Sumin Date: Wed, 18 Dec 2024 01:10:42 +0200 Subject: [PATCH] upd --- .../features/activities/data/transaction_repository.dart | 2 +- .../lib/features/activities/services/tx_updater.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/espressocash_app/lib/features/activities/data/transaction_repository.dart b/packages/espressocash_app/lib/features/activities/data/transaction_repository.dart index 0be6d8457..715f8017e 100644 --- a/packages/espressocash_app/lib/features/activities/data/transaction_repository.dart +++ b/packages/espressocash_app/lib/features/activities/data/transaction_repository.dart @@ -24,7 +24,7 @@ import '../models/activity.dart'; import '../models/transaction.dart'; import 'activity_builder.dart'; -@Singleton(scope: authScope) +@injectable class TransactionRepository { const TransactionRepository(this._db); diff --git a/packages/espressocash_app/lib/features/activities/services/tx_updater.dart b/packages/espressocash_app/lib/features/activities/services/tx_updater.dart index 96caf5947..9cfefb307 100644 --- a/packages/espressocash_app/lib/features/activities/services/tx_updater.dart +++ b/packages/espressocash_app/lib/features/activities/services/tx_updater.dart @@ -100,7 +100,7 @@ class TxUpdater implements Disposable { return filteredTxs.toSet().toList(); }); - Future> _getAllTokenAccounts( + Future> _getAllTokenAccounts( Ed25519HDPublicKey owner, ) => _client.rpcClient @@ -118,7 +118,7 @@ class TxUpdater implements Disposable { final mintAddressBytes = data.data.sublist(0, 32); final mintAddress = base58encode(mintAddressBytes); - return TokenAccountInfo( + return _TokenAccountInfo( account: Ed25519HDPublicKey.fromBase58(account.pubkey), mintAddress: mintAddress, ); @@ -217,8 +217,8 @@ extension on TransactionDetails { } } -class TokenAccountInfo { - const TokenAccountInfo({ +class _TokenAccountInfo { + const _TokenAccountInfo({ required this.account, required this.mintAddress, });