diff --git a/lib/services/wallet_connect_service.dart b/lib/services/wallet_connect_service.dart index b03ccc2a..2faa2945 100644 --- a/lib/services/wallet_connect_service.dart +++ b/lib/services/wallet_connect_service.dart @@ -44,8 +44,9 @@ class WalletConnectService { name: 's y r i u s', description: 'A wallet for interacting with Zenon Network', url: 'https://zenon.network', - // TODO: add Zenon icon - icons: ['https://avatars.githubusercontent.com/u/37784886'], + icons: [ + 'https://raw.githubusercontent.com/zenon-network/syrius/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/Icon-MacOS-512x512%402x.png' + ], ), ).onError((e, stackTrace) { Logger('WalletConnectService') @@ -80,6 +81,8 @@ class WalletConnectService { Future pair(Uri uri) => _wcClient.pair(uri: uri); void _initListeners() { + _wcClient.onSessionProposal.subscribe(onSessionProposal); + _wcClient.core.relayClient.onRelayClientDisconnect.subscribe((args) { Logger('WalletConnectService').log( Level.INFO, 'onRelayClientDisconnect triggered', args.toString()); @@ -137,11 +140,10 @@ class WalletConnectService { _wcClient.onSessionConnect.subscribe((args) { Logger('WalletConnectService') .log(Level.INFO, 'onSessionConnect triggered', args.toString()); - sl.get().refreshResults(); + Future.delayed(const Duration(seconds: 3)).then( + (value) => sl.get().refreshResults()); }); - _wcClient.onSessionProposal.subscribe(onSessionProposal); - _wcClient.onSessionRequest.subscribe((SessionRequestEvent? request) async { Logger('WalletConnectService') .log(Level.INFO, 'onSessionRequest triggered', request.toString()); diff --git a/lib/widgets/tab_children_widgets/wallet_connect_tab_child.dart b/lib/widgets/tab_children_widgets/wallet_connect_tab_child.dart index 6994cdea..c99d8f31 100644 --- a/lib/widgets/tab_children_widgets/wallet_connect_tab_child.dart +++ b/lib/widgets/tab_children_widgets/wallet_connect_tab_child.dart @@ -1,10 +1,5 @@ import 'package:flutter/material.dart'; import 'package:layout/layout.dart'; -import 'package:zenon_syrius_wallet_flutter/widgets/modular_widgets/wallet_connect_widgets/wallet_connect_camera_card.dart'; -import 'package:zenon_syrius_wallet_flutter/widgets/modular_widgets/wallet_connect_widgets/wallet_connect_pairing_list_card.dart'; -import 'package:zenon_syrius_wallet_flutter/widgets/modular_widgets/wallet_connect_widgets/wallet_connect_qr_card.dart'; -import 'package:zenon_syrius_wallet_flutter/widgets/modular_widgets/wallet_connect_widgets/wallet_connect_uri_card.dart'; -import 'package:zenon_syrius_wallet_flutter/widgets/modular_widgets/wallet_connect_widgets/wallet_connect_session_list_card.dart'; import 'package:zenon_syrius_wallet_flutter/widgets/widgets.dart'; class WalletConnectTabChild extends StatelessWidget { diff --git a/pubspec.lock b/pubspec.lock index b6ce66d0..a84ae396 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1513,10 +1513,10 @@ packages: dependency: "direct main" description: name: walletconnect_flutter_v2 - sha256: "3c640498e83405a21d27bc180178e32f69eaedcf94e4dd6511bd274c94903353" + sha256: "87295fb305767bb089e6c5a78f273b52e30ade6eaa5fa89c3e103970f0ce6721" url: "https://pub.dev" source: hosted - version: "2.0.13" + version: "2.0.14" watcher: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index e221a2ee..cd2b16a5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -57,7 +57,7 @@ dependencies: launch_at_startup: ^0.2.1 app_links: ^3.4.3 logging: ^1.2.0 - walletconnect_flutter_v2: ^2.0.13 + walletconnect_flutter_v2: ^2.0.14 preference_list: ^0.0.1 screen_capturer: ^0.1.2 uni_ocr: ^0.1.0