From dcd5e7a31cdbc923ad2ffada32befccb846f2b61 Mon Sep 17 00:00:00 2001 From: Dmitrii Podlesnyi Date: Wed, 3 Jul 2024 22:22:40 +0700 Subject: [PATCH] fix: wagmi config transports init --- providers/web3.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/providers/web3.tsx b/providers/web3.tsx index b3d12997e..c69bb91d2 100644 --- a/providers/web3.tsx +++ b/providers/web3.tsx @@ -79,10 +79,13 @@ const Web3Provider: FC = ({ children }) => { chains: supportedChains, ssr: true, multiInjectedProviderDiscovery: false, - transports: supportedChains.reduce((res, curr) => ({ - ...res, - [curr.id]: http(backendRPC[curr.id], { batch: true }), - })), + transports: supportedChains.reduce( + (res, curr) => ({ + ...res, + [curr.id]: http(backendRPC[curr.id], { batch: true }), + }), + {}, + ), }); }, [supportedChains, backendRPC]);