chainsForConnect method

List<String> chainsForConnect(
  1. List<String> chains
)

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(this.chain.toUpperCase()) ? <String>[this.chain] : chains;
}