isValidRequiredNamespaces static method
bool
isValidRequiredNamespaces({
- required Map<
String, RequiredNamespace> requiredNamespaces, - required String context,
Validates the data of the Required Namespaces, ensuring it conforms to CAIP-25
Implementation
static bool isValidRequiredNamespaces({
required Map<String, RequiredNamespace> requiredNamespaces,
required String context,
}) {
requiredNamespaces.forEach((key, namespace) {
isValidChains(
nsOrChainId: key,
chains: namespace.chains,
context: '$context requiredNamespace',
);
});
return true;
}