mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Lookup NFTs only if the current wallet is an Ethereum Wallet (#1197)
This commit is contained in:
parent
177d89b904
commit
d07efc81ca
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ import 'dart:developer';
|
|||
|
||||
import 'package:cake_wallet/core/wallet_connect/wc_bottom_sheet_service.dart';
|
||||
import 'package:cake_wallet/src/screens/wallet_connect/widgets/message_display_widget.dart';
|
||||
import 'package:cw_core/wallet_type.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
||||
|
@ -38,6 +39,8 @@ abstract class NFTViewModelBase with Store {
|
|||
|
||||
@action
|
||||
Future<void> getNFTAssetByWallet() async {
|
||||
if (appStore.wallet!.type != WalletType.ethereum) return;
|
||||
|
||||
final walletAddress = appStore.wallet!.walletInfo.address;
|
||||
log('Fetching wallet NFTs for $walletAddress');
|
||||
|
||||
|
|
Loading…
Reference in a new issue