mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +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;
|
||
|
}
|
||
|
}
|