isValidNamespacesEvent function

bool isValidNamespacesEvent(
  1. SessionNamespaces namespaces,
  2. String chainId,
  3. String eventName
)

Implementation

bool isValidNamespacesEvent(
  SessionNamespaces namespaces,
  String chainId,
  String eventName,
) {
  final events = getNamespacesEventsForChainId(namespaces, chainId);
  return events.contains(eventName);
}