isValidNamespacesRequest function

bool isValidNamespacesRequest(
  1. SessionNamespaces namespaces,
  2. String chainId,
  3. String method
)

Implementation

bool isValidNamespacesRequest(
  SessionNamespaces namespaces,
  String chainId,
  String method,
) {
  final methods = getNamespacesMethodsForChainId(namespaces, chainId);
  return methods.contains(method);
}