mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
firo testnet testing enable
This commit is contained in:
parent
780a34b7dc
commit
9ff323393e
3 changed files with 7 additions and 3 deletions
|
@ -126,7 +126,7 @@ class _AddWalletViewState extends ConsumerState<AddWalletView> {
|
|||
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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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<T extends CryptoCurrency> {
|
||||
// default to Transaction class. For TransactionV2 set to 2
|
||||
|
@ -270,7 +271,7 @@ abstract class Wallet<T extends CryptoCurrency> {
|
|||
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<T extends CryptoCurrency> {
|
|||
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();
|
||||
|
|
Loading…
Reference in a new issue