From 172b3d157bacc84dff2dece8b4fd0c11ca9e1487 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 22 Nov 2022 15:37:47 -0600 Subject: [PATCH] wownero disable on desktop fix --- lib/utilities/enums/coin_enum.dart | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/utilities/enums/coin_enum.dart b/lib/utilities/enums/coin_enum.dart index 648407809..543a193ee 100644 --- a/lib/utilities/enums/coin_enum.dart +++ b/lib/utilities/enums/coin_enum.dart @@ -12,7 +12,7 @@ import 'package:stackwallet/services/coins/monero/monero_wallet.dart' as xmr; import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart' as nmc; import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow; -import 'dart:io' show Platform; +import 'package:stackwallet/utilities/util.dart'; enum Coin { bitcoin, @@ -37,12 +37,7 @@ enum Coin { firoTestNet, } -if(Platform.isLinux || Platform.isWindows || Platform.isMacOS) { - int kTestNetCoinCount = 5; // Because we are removing Wownero from Desktop -} else { - // remove firotestnet for now - int kTestNetCoinCount = 4; -} +final int kTestNetCoinCount = Util.isDesktop ? 5 : 4; extension CoinExt on Coin { String get prettyName {