mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-30 00:47:48 +00:00
22 lines
526 B
Dart
22 lines
526 B
Dart
|
import 'package:cw_core/wallet_type.dart';
|
||
|
|
||
|
bool isBIP39Wallet(WalletType walletType) {
|
||
|
switch (walletType) {
|
||
|
case WalletType.ethereum:
|
||
|
case WalletType.polygon:
|
||
|
case WalletType.solana:
|
||
|
case WalletType.tron:
|
||
|
case WalletType.bitcoin:
|
||
|
case WalletType.litecoin:
|
||
|
case WalletType.bitcoinCash:
|
||
|
case WalletType.nano:
|
||
|
case WalletType.banano:
|
||
|
return true;
|
||
|
case WalletType.monero:
|
||
|
case WalletType.wownero:
|
||
|
case WalletType.haven:
|
||
|
case WalletType.none:
|
||
|
return false;
|
||
|
}
|
||
|
}
|