From 2cacf6cf884c65da204190fc8d1a69ad9a57a8f3 Mon Sep 17 00:00:00 2001 From: skibitsky Date: Tue, 28 May 2024 16:24:20 +0300 Subject: [PATCH] Remove unnecessary chainID check from AddressProvider.SetDefaultChainIdAsync --- WalletConnectSharp.Sign/Controllers/AddressProvider.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/WalletConnectSharp.Sign/Controllers/AddressProvider.cs b/WalletConnectSharp.Sign/Controllers/AddressProvider.cs index 683ec76..051597c 100644 --- a/WalletConnectSharp.Sign/Controllers/AddressProvider.cs +++ b/WalletConnectSharp.Sign/Controllers/AddressProvider.cs @@ -220,11 +220,6 @@ public async Task SetDefaultChainIdAsync(string chainId) throw new ArgumentNullException(nameof(chainId)); } - if (!DefaultSession.Namespaces[DefaultNamespace].Chains.Contains(chainId)) - { - throw new InvalidOperationException($"Chain {chainId} is not available in the current session"); - } - DefaultChainId = chainId; await SaveDefaults(); }