From c3d7c16cab164253cc55a2fca6f2a955c7cd0d2e Mon Sep 17 00:00:00 2001 From: rob1997 Date: Fri, 17 May 2024 13:01:07 +0300 Subject: [PATCH] reverted some changes for the fix --- .../RpcClientWrapper.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs b/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs index 40d98d47c..86062770e 100644 --- a/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs +++ b/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs @@ -1,5 +1,4 @@ using System; -using System.Net.Http; using ChainSafe.Gaming.Web3; using Nethereum.JsonRpc.Client; using Nethereum.Unity.Rpc; @@ -10,7 +9,7 @@ public class RpcClientWrapper : IRpcClientWrapper { public RpcClientWrapper(IChainConfig chainConfig) { - Client = new SimpleRpcClient(new Uri(chainConfig.Rpc), new HttpClient()); + Client = new UnityWebRequestRpcTaskClient(new Uri(chainConfig.Rpc)); } public IClient Client { get; private set; }