mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-22 15:19:11 +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() {
|
void initState() {
|
||||||
_searchFieldController = TextEditingController();
|
_searchFieldController = TextEditingController();
|
||||||
_searchFocusNode = FocusNode();
|
_searchFocusNode = FocusNode();
|
||||||
_coinsTestnet.remove(Coin.firoTestNet);
|
// _coinsTestnet.remove(Coin.firoTestNet);
|
||||||
if (Platform.isWindows) {
|
if (Platform.isWindows) {
|
||||||
_coins.remove(Coin.monero);
|
_coins.remove(Coin.monero);
|
||||||
_coins.remove(Coin.wownero);
|
_coins.remove(Coin.wownero);
|
||||||
|
|
|
@ -42,7 +42,7 @@ enum Coin {
|
||||||
stellarTestnet,
|
stellarTestnet,
|
||||||
}
|
}
|
||||||
|
|
||||||
final int kTestNetCoinCount = 5; // Util.isDesktop ? 5 : 4;
|
final int kTestNetCoinCount = 6; // Util.isDesktop ? 5 : 4;
|
||||||
// remove firotestnet for now
|
// remove firotestnet for now
|
||||||
|
|
||||||
extension CoinExt on Coin {
|
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/lelantus_interface.dart';
|
||||||
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/mnemonic_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/multi_address_interface.dart';
|
||||||
|
import 'package:stackwallet/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart';
|
||||||
|
|
||||||
abstract class Wallet<T extends CryptoCurrency> {
|
abstract class Wallet<T extends CryptoCurrency> {
|
||||||
// default to Transaction class. For TransactionV2 set to 2
|
// default to Transaction class. For TransactionV2 set to 2
|
||||||
|
@ -270,7 +271,7 @@ abstract class Wallet<T extends CryptoCurrency> {
|
||||||
case Coin.firo:
|
case Coin.firo:
|
||||||
return FiroWallet(CryptoCurrencyNetwork.main);
|
return FiroWallet(CryptoCurrencyNetwork.main);
|
||||||
case Coin.firoTestNet:
|
case Coin.firoTestNet:
|
||||||
return FiroWallet(CryptoCurrencyNetwork.main);
|
return FiroWallet(CryptoCurrencyNetwork.test);
|
||||||
|
|
||||||
case Coin.nano:
|
case Coin.nano:
|
||||||
return NanoWallet(CryptoCurrencyNetwork.main);
|
return NanoWallet(CryptoCurrencyNetwork.main);
|
||||||
|
@ -439,6 +440,9 @@ abstract class Wallet<T extends CryptoCurrency> {
|
||||||
if (this is LelantusInterface) {
|
if (this is LelantusInterface) {
|
||||||
await (this as LelantusInterface).refreshLelantusData();
|
await (this as LelantusInterface).refreshLelantusData();
|
||||||
}
|
}
|
||||||
|
if (this is SparkInterface) {
|
||||||
|
await (this as SparkInterface).refreshSparkData();
|
||||||
|
}
|
||||||
GlobalEventBus.instance.fire(RefreshPercentChangedEvent(0.90, walletId));
|
GlobalEventBus.instance.fire(RefreshPercentChangedEvent(0.90, walletId));
|
||||||
|
|
||||||
await updateBalance();
|
await updateBalance();
|
||||||
|
|
Loading…
Reference in a new issue