hasSwitchMethod method
Implementation
bool hasSwitchMethod() {
if (sessionService.noSession) {
return false;
}
if (sessionService.isCoinbase) {
return true;
}
if (sessionService.isMagic) {
return true;
}
final nsMethods = getApprovedMethods(namespace: NetworkUtils.eip155) ?? [];
final supportsAddChain = nsMethods.contains(
MethodsConstants.walletAddEthChain,
);
return supportsAddChain;
}