Skip to content

Commit f43c244

Browse files
author
Sterling Long
committed
Tapping network error will reconnect
1 parent f2ebbd1 commit f43c244

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ WalletConnectModalConnect(
5656
),
5757
```
5858

59+
## Notes
60+
61+
Swapping the required or optional namespaces will not do anything if your dApp has already connected.
62+
For those changes to take effect, you must disconnect and reconnect.
63+
5964
## iOS Setup
6065

6166
For each app you would like to be able to deep link to, you must add that app's link into the `ios/Runner/Info.plist` file like so:

example/sign/pubspec.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ packages:
55
dependency: transitive
66
description:
77
name: _fe_analyzer_shared
8-
sha256: "58826e40314219b223f4723dd4205845040161cdc2df3e6a1cdceed5d8165084"
8+
sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "63.0.0"
11+
version: "64.0.0"
1212
adaptive_number:
1313
dependency: transitive
1414
description:
@@ -21,10 +21,10 @@ packages:
2121
dependency: transitive
2222
description:
2323
name: analyzer
24-
sha256: f85566ec7b3d25cbea60f7dd4f157c5025f2f19233ca4feeed33b616c78a26a3
24+
sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893"
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "6.1.0"
27+
version: "6.2.0"
2828
args:
2929
dependency: transitive
3030
description:
@@ -540,10 +540,10 @@ packages:
540540
dependency: transitive
541541
description:
542542
name: platform
543-
sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
543+
sha256: "57c07bf82207aee366dfaa3867b3164e4f03a238a461a11b0e8a3a510d51203d"
544544
url: "https://pub.dev"
545545
source: hosted
546-
version: "3.1.0"
546+
version: "3.1.1"
547547
plugin_platform_interface:
548548
dependency: transitive
549549
description:
@@ -628,10 +628,10 @@ packages:
628628
dependency: transitive
629629
description:
630630
name: shared_preferences_foundation
631-
sha256: f39696b83e844923b642ce9dd4bd31736c17e697f6731a5adf445b1274cf3cd4
631+
sha256: d29753996d8eb8f7619a1f13df6ce65e34bc107bef6330739ed76f18b22310ef
632632
url: "https://pub.dev"
633633
source: hosted
634-
version: "2.3.2"
634+
version: "2.3.3"
635635
shared_preferences_linux:
636636
dependency: transitive
637637
description:
@@ -913,17 +913,17 @@ packages:
913913
dependency: "direct main"
914914
description:
915915
name: walletconnect_flutter_v2
916-
sha256: "3a7c6d1f1598f3236cf90ee30946910b0feae170b40e094e305e3dbbf7b824d2"
916+
sha256: "7429c8edfcf830e931ecd9112656a52c5f9c83cb0fcc00a1afb4f10d2be1b6e7"
917917
url: "https://pub.dev"
918918
source: hosted
919-
version: "2.1.3"
919+
version: "2.1.4"
920920
walletconnect_modal_flutter:
921921
dependency: "direct main"
922922
description:
923923
path: "../.."
924924
relative: true
925925
source: path
926-
version: "1.2.2"
926+
version: "2.0.0"
927927
watcher:
928928
dependency: transitive
929929
description:

lib/widgets/walletconnect_modal_connect.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ class _WalletConnectModalConnectState extends State<WalletConnectModalConnect> {
199199
}
200200

201201
void _reconnect() {
202-
widget.service.web3App!.core.relayClient.connect();
202+
widget.service.web3App!.core.relayClient.connect(
203+
// relayUrl: WalletConnectConstants.DEFAULT_RELAY_URL,
204+
// relayUrl: 'https://test.walletconnect.org',
205+
);
203206

204207
setState(() {
205208
_state = WalletConnectModalConnectButtonState.reconnecting;

0 commit comments

Comments
 (0)