mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
feat: Enable NFTs for Solana wallet (#2082)
* feat: Enable NFTs for Solana wallet * Add localization for texts * Adjust file naming * Adjust file naming
This commit is contained in:
@@ -12,6 +12,17 @@ bool isEVMCompatibleChain(WalletType walletType) {
|
||||
}
|
||||
}
|
||||
|
||||
bool isNFTACtivatedChain(WalletType walletType) {
|
||||
switch (walletType) {
|
||||
case WalletType.polygon:
|
||||
case WalletType.ethereum:
|
||||
case WalletType.solana:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool isWalletConnectCompatibleChain(WalletType walletType) {
|
||||
switch (walletType) {
|
||||
case WalletType.polygon:
|
||||
@@ -55,7 +66,7 @@ String getChainNameBasedOnWalletType(WalletType walletType) {
|
||||
case WalletType.polygon:
|
||||
return 'polygon';
|
||||
case WalletType.solana:
|
||||
return 'solana';
|
||||
return 'mainnet';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user