mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Fixes for update fiat rate after change of current wallet type. Fixes for change amount for btc transactions. Changed displaying of balance for btc wallet. General fixes.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
import 'package:cake_wallet/entities/balance_display_mode.dart';
|
||||
|
||||
abstract class Balance {
|
||||
const Balance();
|
||||
const Balance(this.availableModes);
|
||||
|
||||
final List<BalanceDisplayMode> availableModes;
|
||||
|
||||
String formattedBalance(BalanceDisplayMode mode);
|
||||
}
|
||||
|
||||
@@ -19,5 +19,5 @@ Future<void> loadCurrentWallet() async {
|
||||
await getIt.get<KeyService>().getWalletPassword(walletName: name);
|
||||
final _service = getIt.get<WalletService>(param1: type);
|
||||
final wallet = await _service.openWallet(name, password);
|
||||
appStore.wallet = wallet;
|
||||
appStore.changeCurrentWallet(wallet);
|
||||
}
|
||||
|
||||
@@ -39,9 +39,9 @@ Future<List<Node>> loadElectrumServerList() async {
|
||||
|
||||
Future resetToDefault(Box<Node> nodeSource) async {
|
||||
final moneroNodes = await loadDefaultNodes();
|
||||
// final bitcoinElectrumServerList = await loadElectrumServerList();
|
||||
// final nodes = moneroNodes + bitcoinElectrumServerList;
|
||||
final bitcoinElectrumServerList = await loadElectrumServerList();
|
||||
final nodes = moneroNodes + bitcoinElectrumServerList;
|
||||
|
||||
await nodeSource.clear();
|
||||
await nodeSource.addAll(moneroNodes);
|
||||
await nodeSource.addAll(nodes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user