Skip to content

Commit 573dca4

Browse files
committed
ui(spl): show edit tokens screen after sol wallet creation or restore
1 parent fe1fdf6 commit 573dca4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/pages/add_wallet_views/restore_wallet_view/restore_wallet_view.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import '../../../utilities/logger.dart';
4040
import '../../../utilities/text_styles.dart';
4141
import '../../../utilities/util.dart';
4242
import '../../../wallets/crypto_currency/crypto_currency.dart';
43+
import '../../../wallets/crypto_currency/coins/ethereum.dart';
44+
import '../../../wallets/crypto_currency/coins/solana.dart';
4345
import '../../../wallets/isar/models/wallet_info.dart';
4446
import '../../../wallets/wallet/impl/epiccash_wallet.dart';
4547
import '../../../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,

lib/pages/add_wallet_views/verify_recovery_phrase_view/verify_recovery_phrase_view.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import '../../../utilities/show_loading.dart';
3131
import '../../../utilities/text_styles.dart';
3232
import '../../../utilities/util.dart';
3333
import '../../../wallets/crypto_currency/crypto_currency.dart';
34+
import '../../../wallets/crypto_currency/coins/ethereum.dart';
35+
import '../../../wallets/crypto_currency/coins/solana.dart';
3436
import '../../../wallets/crypto_currency/intermediate/bip39_hd_currency.dart';
3537
import '../../../wallets/isar/models/wallet_info.dart';
3638
import '../../../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)

0 commit comments

Comments
 (0)