Skip to content

Commit

Permalink
fix issue 123
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed May 6, 2024
1 parent bebd72c commit 9107600
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions example/lib/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class _MyHomePageState extends State<MyHomePage> {
universal: 'https://web3modal.com',
),
),
enableAnalytics: true, // Optional - null by default
enableEmail: true, // Optional - false by default
// enableAnalytics: true, // OPTIONAL - null by default
// enableEmail: true, // OPTIONAL - false by default
// requiredNamespaces: {},
// optionalNamespaces: {},
// excludedWalletIds: {
Expand Down
14 changes: 7 additions & 7 deletions lib/services/w3m_service/w3m_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@ class W3MService with ChangeNotifier, CoinbaseService implements IW3MService {
}
}

loggerService.instance = LoggerService(
level: logLevel,
projectId: projectId ?? _web3App.core.projectId,
debugMode: kDebugMode,
);

_web3App = web3App ??
Web3App(
core: Core(projectId: projectId!),
metadata: metadata!,
);
_projectId = projectId ?? _web3App.core.projectId;
_projectId = _web3App.core.projectId;

loggerService.instance = LoggerService(
level: logLevel,
projectId: _projectId,
debugMode: kDebugMode,
);

_setRequiredNamespaces(requiredNamespaces);
_setOptionalNamespaces(optionalNamespaces);
Expand Down

0 comments on commit 9107600

Please sign in to comment.