Skip to content

Commit

Permalink
fix: add balance ramp wrapper back
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Feb 27, 2023
1 parent e39a768 commit fb2d2d5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/react/src/core/wallet/providers/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
InfuraProvider,
JsonRpcBatchProvider,
} from '@ethersproject/providers';
import { wrapWagmiClient } from '@flair-sdk/balance-ramp';
import { FLAIR_CHAINS } from '@flair-sdk/chains';
import {
DiscordWeb3AuthConnector,
Expand Down Expand Up @@ -309,12 +310,14 @@ export const WalletProvider = ({
]);

const wagmiClient = useMemo(() => {
return createClient({
autoConnect: tryAutoConnect,
connectors: connectorsList,
provider: wagmiProvider,
webSocketProvider,
});
return wrapWagmiClient(
createClient({
autoConnect: tryAutoConnect,
connectors: connectorsList,
provider: wagmiProvider,
webSocketProvider,
}),
);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [connectorsList]);

Expand Down

0 comments on commit fb2d2d5

Please sign in to comment.