Skip to content

Commit

Permalink
fix: wagmi config transports init
Browse files Browse the repository at this point in the history
  • Loading branch information
manneredboor committed Jul 3, 2024
1 parent 054a1f3 commit dcd5e7a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions providers/web3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,13 @@ const Web3Provider: FC<PropsWithChildren> = ({ 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]);

Expand Down

0 comments on commit dcd5e7a

Please sign in to comment.