getApprovedChains method
Implementation
List<String>? getApprovedChains() {
if (sessionService.noSession) {
return null;
}
// We can not know which chains are approved from Coinbase or Magic
if (!sessionService.isWC) {
return [chainId];
}
final accounts = getAccounts() ?? [];
final approvedChains = NamespaceUtils.getChainsFromAccounts(accounts);
return approvedChains;
}