chainsForConnect method
Restricts EVM, SOL, and BTC namespaces to the selected wallet's chain family. Leaves other families unchanged.
Implementation
List<String> chainsForConnect(List<String> chains) {
return (const <String>["EVM", "SOL", "SOLANA", "BTC", "BITCOIN"]).contains(chain.toUpperCase()) ? <String>[chain] : chains;
}