Skip to content

Commit

Permalink
feat: evm wallet connector implemented in fuel provider
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropereiradev committed Apr 2, 2024
1 parent efd3372 commit 17e4a3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/react-app/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ReactDOM from 'react-dom/client';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';

import { defaultConnectors } from '@fuels/connectors';
import { EVMWalletConnector, defaultConnectors } from '@fuels/connectors';
import { FuelProvider } from '@fuels/react';

import * as Toast from '@radix-ui/react-toast';
Expand All @@ -21,7 +21,10 @@ ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<FuelProvider
theme="dark"
fuelConfig={{
connectors: defaultConnectors({ devMode: true }),
connectors: [
...defaultConnectors({ devMode: true }),
new EVMWalletConnector(),
],
}}
>
<Toast.Provider>
Expand Down

0 comments on commit 17e4a3e

Please sign in to comment.