File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
lib/pages/add_wallet_views
verify_recovery_phrase_view Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ import '../../../utilities/logger.dart';
4040import '../../../utilities/text_styles.dart' ;
4141import '../../../utilities/util.dart' ;
4242import '../../../wallets/crypto_currency/crypto_currency.dart' ;
43+ import '../../../wallets/crypto_currency/coins/ethereum.dart' ;
44+ import '../../../wallets/crypto_currency/coins/solana.dart' ;
4345import '../../../wallets/isar/models/wallet_info.dart' ;
4446import '../../../wallets/wallet/impl/epiccash_wallet.dart' ;
4547import '../../../wallets/wallet/impl/mimblewimblecoin_wallet.dart' ;
@@ -412,7 +414,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
412414 (route) => false ,
413415 ),
414416 );
415- if (info.coin is Ethereum ) {
417+ if (info.coin is Ethereum || info.coin is Solana ) {
416418 unawaited (
417419 Navigator .of (context).pushNamed (
418420 EditWalletTokensView .routeName,
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ import '../../../utilities/show_loading.dart';
3131import '../../../utilities/text_styles.dart' ;
3232import '../../../utilities/util.dart' ;
3333import '../../../wallets/crypto_currency/crypto_currency.dart' ;
34+ import '../../../wallets/crypto_currency/coins/ethereum.dart' ;
35+ import '../../../wallets/crypto_currency/coins/solana.dart' ;
3436import '../../../wallets/crypto_currency/intermediate/bip39_hd_currency.dart' ;
3537import '../../../wallets/isar/models/wallet_info.dart' ;
3638import '../../../wallets/wallet/impl/epiccash_wallet.dart' ;
@@ -356,7 +358,7 @@ class _VerifyRecoveryPhraseViewState
356358 Navigator .of (
357359 context,
358360 ).popUntil (ModalRoute .withName (DesktopHomeView .routeName));
359- if (_coin is Ethereum ) {
361+ if (_coin is Ethereum || _coin is Solana ) {
360362 unawaited (
361363 Navigator .of (context).pushNamed (
362364 EditWalletTokensView .routeName,
@@ -376,7 +378,7 @@ class _VerifyRecoveryPhraseViewState
376378 context,
377379 ).pushNamedAndRemoveUntil (HomeView .routeName, (route) => false ),
378380 );
379- if (_coin is Ethereum ) {
381+ if (_coin is Ethereum || _coin is Solana ) {
380382 WidgetsBinding .instance.addPostFrameCallback ((_) {
381383 ref
382384 .read (pNavKey)
You can’t perform that action at this time.
0 commit comments