mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Actually skip zcash in node_list.resetToDefault (previous commit missed this)
The companion to 78edfe0bb — that commit fixed the migration step 55 but
the resetToDefault() in lib/entities/node_list.dart was still trying to
loadDefaultNodes(WalletType.zcash) on every fresh wallet creation, which
is exactly where the user's reported popup fires.
This commit is contained in:
@@ -115,7 +115,9 @@ Future<void> resetToDefault(Box<Node> nodeSource) async {
|
||||
final dogecoinElectrumServerList = await loadDefaultNodes(WalletType.dogecoin);
|
||||
final baseNodes = await loadDefaultNodes(WalletType.base);
|
||||
final arbitrumNodes = await loadDefaultNodes(WalletType.arbitrum);
|
||||
final zcashNodes = await loadDefaultNodes(WalletType.zcash);
|
||||
// Hash Wallet: zcash node list deleted with the chain. Skip the load,
|
||||
// skip the concat — stops the first-launch popup "Unable to load asset:
|
||||
// assets/zcash_node_list.yml".
|
||||
final bscNodes = await loadDefaultNodes(WalletType.bsc);
|
||||
|
||||
final nodes = moneroNodes +
|
||||
@@ -133,7 +135,6 @@ Future<void> resetToDefault(Box<Node> nodeSource) async {
|
||||
dogecoinElectrumServerList +
|
||||
baseNodes +
|
||||
arbitrumNodes +
|
||||
zcashNodes +
|
||||
bscNodes;
|
||||
|
||||
await nodeSource.clear();
|
||||
|
||||
Reference in New Issue
Block a user