From 3d841598ba5e273d099384d1746c55e36affb407 Mon Sep 17 00:00:00 2001 From: skibitsky Date: Tue, 16 Apr 2024 13:56:39 +0300 Subject: [PATCH] Fix failing connection with some wallets --- Directory.Build.props | 2 +- WalletConnectSharp.Sign/Engine.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 8b1e626..b8f8019 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 2.3.3 + 2.3.4 net6.0;net7.0;net8.0;netstandard2.1; true diff --git a/WalletConnectSharp.Sign/Engine.cs b/WalletConnectSharp.Sign/Engine.cs index 0029197..01fc48f 100644 --- a/WalletConnectSharp.Sign/Engine.cs +++ b/WalletConnectSharp.Sign/Engine.cs @@ -474,7 +474,7 @@ public async Task Connect(ConnectOptions options) async void OnSessionConnected(object sender, SessionStruct session) { - if (session.PairingTopic != topic) + if (!string.IsNullOrWhiteSpace(session.PairingTopic) && session.PairingTopic != topic) { return; }