setDefaultChain method

  1. @override
void setDefaultChain({
  1. required Map<String, RequiredNamespace> requiredNamespaces,
})
override

Sets the required namespaces that will be used when connecting to the wallet The default is set to the NamespaceConstants.ethereum namespace.

Implementation

@override
void setDefaultChain({
  required Map<String, RequiredNamespace> requiredNamespaces,
}) {
  _checkInitialized();

  LoggerUtil.logger.i('Setting default chain: $requiredNamespaces');

  _requiredNamespaces = requiredNamespaces;

  notifyListeners();
}