Fix testnet (#1632)

* fix: failed connection and misc changes

* default isTestnet to false

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
This commit is contained in:
Rafael
2024-08-22 01:31:20 +03:00
committed by GitHub
co-authored by OmarHatem
parent 49d2560eb9
commit c0e0cf02aa
6 changed files with 15 additions and 11 deletions
@@ -52,7 +52,7 @@ abstract class NodeListViewModelBase with Store {
switch (_appStore.wallet!.type) {
case WalletType.bitcoin:
if (_appStore.wallet!.isTestnet == true) {
if (_appStore.wallet!.isTestnet) {
node = getBitcoinTestnetDefaultElectrumServer(nodes: _nodeSource)!;
} else {
node = getBitcoinDefaultElectrumServer(nodes: _nodeSource)!;