hasSwitchMethod method

bool hasSwitchMethod()

Implementation

bool hasSwitchMethod() {
  if (sessionService.noSession) {
    return false;
  }
  if (sessionService.isCoinbase) {
    return true;
  }

  final nsMethods = getApprovedMethods() ?? [];
  final supportsAddChain = nsMethods.contains(
    MethodsConstants.walletAddEthChain,
  );
  return supportsAddChain;
}