mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-25 11:03:55 +01:00
fix: Already Known Error (#2606)
* fix: Already made error and update transactions two seconds after successful send for evm, tron and sol * feat: Add updateTransactionsHistory method on WalletBase to handle transaction update immediately after sending * Update lib/view_model/send/send_view_model.dart [skip ci] --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
co-authored by
Omar Hatem
parent
6388ae8af8
commit
b0b053a19d
@@ -102,6 +102,7 @@ abstract class WalletBase<BalanceType extends Balance, HistoryType extends Trans
|
||||
String get password;
|
||||
|
||||
Future<void>? updateBalance();
|
||||
Future<void> updateTransactionsHistory() async {}
|
||||
|
||||
void setExceptionHandler(void Function(FlutterErrorDetails) onError) => null;
|
||||
|
||||
@@ -119,7 +120,7 @@ abstract class WalletBase<BalanceType extends Balance, HistoryType extends Trans
|
||||
/// Returns true if the connection is alive, false otherwise.
|
||||
/// Default implementation returns true (no-op for wallets without socket connections).
|
||||
Future<bool> checkSocketHealth() async => true;
|
||||
|
||||
|
||||
/// This is used to check if the current node is healthy by making a lightweight RPC call
|
||||
/// Each wallet implementation should override this to make a single, efficient call
|
||||
/// Returns true if the node is healthy, false otherwise
|
||||
|
||||
Reference in New Issue
Block a user