diff --git a/src/web3/store/transactionsSlice.ts b/src/web3/store/transactionsSlice.ts index 22e444b..f76c36c 100644 --- a/src/web3/store/transactionsSlice.ts +++ b/src/web3/store/transactionsSlice.ts @@ -231,9 +231,11 @@ export function createTransactionsSlice({ }, setClient: (chainId, client) => { - const stateClients = get().clients; - const updatedClients = (stateClients[chainId] = client); - set({ clients: updatedClients }); + set((state) => + produce(state, (draft) => { + draft.clients[chainId] = client as Draft; + }), + ); }, isGelatoAvailable: true,