diff --git a/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart b/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart index 419aa6d00..ff769f691 100644 --- a/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart +++ b/lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart @@ -126,7 +126,7 @@ class _AddWalletViewState extends ConsumerState { void initState() { _searchFieldController = TextEditingController(); _searchFocusNode = FocusNode(); - _coinsTestnet.remove(Coin.firoTestNet); + // _coinsTestnet.remove(Coin.firoTestNet); if (Platform.isWindows) { _coins.remove(Coin.monero); _coins.remove(Coin.wownero); diff --git a/lib/utilities/enums/coin_enum.dart b/lib/utilities/enums/coin_enum.dart index 67872e3b9..3bc1c1dd9 100644 --- a/lib/utilities/enums/coin_enum.dart +++ b/lib/utilities/enums/coin_enum.dart @@ -42,7 +42,7 @@ enum Coin { stellarTestnet, } -final int kTestNetCoinCount = 5; // Util.isDesktop ? 5 : 4; +final int kTestNetCoinCount = 6; // Util.isDesktop ? 5 : 4; // remove firotestnet for now extension CoinExt on Coin { diff --git a/lib/wallets/wallet/wallet.dart b/lib/wallets/wallet/wallet.dart index 3d790e5b9..b4b1340ef 100644 --- a/lib/wallets/wallet/wallet.dart +++ b/lib/wallets/wallet/wallet.dart @@ -37,6 +37,7 @@ import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/electrumx_int import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/lelantus_interface.dart'; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/mnemonic_interface.dart'; import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/multi_address_interface.dart'; +import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart'; abstract class Wallet { // default to Transaction class. For TransactionV2 set to 2 @@ -270,7 +271,7 @@ abstract class Wallet { case Coin.firo: return FiroWallet(CryptoCurrencyNetwork.main); case Coin.firoTestNet: - return FiroWallet(CryptoCurrencyNetwork.main); + return FiroWallet(CryptoCurrencyNetwork.test); case Coin.nano: return NanoWallet(CryptoCurrencyNetwork.main); @@ -439,6 +440,9 @@ abstract class Wallet { if (this is LelantusInterface) { await (this as LelantusInterface).refreshLelantusData(); } + if (this is SparkInterface) { + await (this as SparkInterface).refreshSparkData(); + } GlobalEventBus.instance.fire(RefreshPercentChangedEvent(0.90, walletId)); await updateBalance();