From 6ce7439e796255d02439413d946ca0f2d78248d1 Mon Sep 17 00:00:00 2001 From: rob1997 Date: Tue, 3 Sep 2024 15:46:39 +0300 Subject: [PATCH] WC can now make rpc requests --- .../WalletConnectProvider.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs b/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs index 4a5289257..dcb1e6d0b 100644 --- a/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs +++ b/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs @@ -432,16 +432,6 @@ public override async Task Request(string method, params object[] paramete } } - var methodRegistered = session.Namespaces.Any(n => n.Value.Methods.Contains(method)); - - if (!methodRegistered) - { - throw new WalletConnectException( - $"RPC method {method} is not supported. " + - $"If you add a new method you have to update {nameof(WalletConnectProvider)} code to reflect those changes. " + - "Contact ChainSafe if you think a specific method should be included in the SDK."); - } - var sessionTopic = session.Topic; EventUtils.ListenOnce(