diff --git a/example/dapp/lib/main.dart b/example/dapp/lib/main.dart index 1356643..30fe9ab 100644 --- a/example/dapp/lib/main.dart +++ b/example/dapp/lib/main.dart @@ -93,7 +93,7 @@ class _MyHomePageState extends State { Future initialize() async { final prefs = await SharedPreferences.getInstance(); - final fromMR = prefs.getBool('_LM_from_MR') ?? false; + final fromMR = prefs.getBool('_LM_from_MR') ?? true; _web3App = Web3App( core: Core( projectId: DartDefines.projectId, diff --git a/example/dapp/lib/pages/connect_page.dart b/example/dapp/lib/pages/connect_page.dart index 54adada..f7b53da 100644 --- a/example/dapp/lib/pages/connect_page.dart +++ b/example/dapp/lib/pages/connect_page.dart @@ -56,7 +56,7 @@ class ConnectPageState extends State { await _walletConnectModalService.init(); final prefs = await SharedPreferences.getInstance(); - _testFromMR = prefs.getBool('_LM_from_MR') ?? false; + _testFromMR = prefs.getBool('_LM_from_MR') ?? true; setState(() => _initialized = true); diff --git a/example/dapp/lib/utils/sample_wallets.dart b/example/dapp/lib/utils/sample_wallets.dart index 01d8fa1..8f7ce16 100644 --- a/example/dapp/lib/utils/sample_wallets.dart +++ b/example/dapp/lib/utils/sample_wallets.dart @@ -32,7 +32,7 @@ class WCSampleWallets { 'name': 'RN Wallet', 'platform': ['ios', 'android'], 'id': '123456789012345678901234567892', - 'schema': 'rn-web3wallet://', + 'schema': 'rn-web3wallet://wc', 'bundleId': 'com.walletconnect.web3wallet.rnsample', 'universal': 'https://lab.web3modal.com/rn_walletkit', }, @@ -40,7 +40,7 @@ class WCSampleWallets { 'name': 'RN Wallet (internal)', 'platform': ['ios', 'android'], 'id': '1234567890123456789012345678922', - 'schema': 'rn-web3wallet://', + 'schema': 'rn-web3wallet://wc', 'bundleId': 'com.walletconnect.web3wallet.rnsample.internal', 'universal': 'https://lab.web3modal.com/rn_walletkit', }, @@ -48,7 +48,7 @@ class WCSampleWallets { 'name': 'Kotlin Wallet', 'platform': ['android'], 'id': '123456789012345678901234567893', - 'schema': 'kotlin-web3wallet://', + 'schema': 'kotlin-web3wallet://wc', 'bundleId': 'com.walletconnect.sample.wallet', 'universal': 'https://web3modal-laboratory-git-chore-kotlin-assetlinks-walletconnect1.vercel.app/wallet_release', @@ -57,7 +57,7 @@ class WCSampleWallets { 'name': 'Kotlin Wallet (Internal)', 'platform': ['android'], 'id': '123456789012345678901234567894', - 'schema': 'kotlin-web3wallet://', + 'schema': 'kotlin-web3wallet://wc', 'bundleId': 'com.walletconnect.sample.wallet.internal', 'universal': 'https://web3modal-laboratory-git-chore-kotlin-assetlinks-walletconnect1.vercel.app/wallet_internal', diff --git a/example/wallet/lib/dependencies/web3wallet_service.dart b/example/wallet/lib/dependencies/web3wallet_service.dart index 194cfcd..4a382f2 100644 --- a/example/wallet/lib/dependencies/web3wallet_service.dart +++ b/example/wallet/lib/dependencies/web3wallet_service.dart @@ -1,9 +1,8 @@ import 'dart:async'; import 'dart:convert'; import 'dart:developer'; -import 'dart:typed_data'; -import 'package:flutter/material.dart'; +import 'package:flutter/foundation.dart'; import 'package:get_it/get_it.dart'; import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; import 'package:walletconnect_flutter_v2_wallet/dependencies/bottom_sheet/i_bottom_sheet_service.dart'; @@ -56,7 +55,7 @@ class Web3WalletService extends IWeb3WalletService { @override Future create() async { final prefs = await SharedPreferences.getInstance(); - final fromMR = prefs.getBool('_LM_from_MR') ?? false; + final fromMR = prefs.getBool('_LM_from_MR') ?? true; // Create the web3wallet _web3Wallet = Web3Wallet( core: Core( diff --git a/example/wallet/lib/pages/settings_page.dart b/example/wallet/lib/pages/settings_page.dart index cea1564..fb76297 100644 --- a/example/wallet/lib/pages/settings_page.dart +++ b/example/wallet/lib/pages/settings_page.dart @@ -89,7 +89,7 @@ class _SettingsPageState extends State { const SizedBox(width: 20.0), const Text('LM from MR '), Switch( - value: prefs.getBool('_LM_from_MR') ?? false, + value: prefs.getBool('_LM_from_MR') ?? true, onChanged: (value) async { await prefs.setBool('_LM_from_MR', value); exit(0);