Skip to content

Commit

Permalink
fix: spelling of Wagmi (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdt-eth authored Sep 11, 2024
1 parent c098422 commit 28fecc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/OnchainProviders.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { mock } from 'wagmi/connectors';
import OnchainProviders from './OnchainProviders';

vi.mock('../wagmi', () => ({
useWamigConfig: () =>
useWagmiConfig: () =>
createConfig({
chains: [base],
connectors: [
Expand Down
4 changes: 2 additions & 2 deletions src/components/OnchainProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import type { ReactNode } from 'react';
import { base } from 'viem/chains';
import { WagmiProvider } from 'wagmi';
import { NEXT_PUBLIC_CDP_API_KEY } from '../config';
import { useWamigConfig } from '../wagmi';
import { useWagmiConfig } from '../wagmi';

type Props = { children: ReactNode };

const queryClient = new QueryClient();

function OnchainProviders({ children }: Props) {
const wagmiConfig = useWamigConfig();
const wagmiConfig = useWagmiConfig();

This comment has been minimized.

Copy link
@RSVILLAAMO

RSVILLAAMO Sep 11, 2024

May I ask In how your configuration has this Impact tis prototype


return (
<WagmiProvider config={wagmiConfig}>
Expand Down
2 changes: 1 addition & 1 deletion src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { http, createConfig } from 'wagmi';
import { base, baseSepolia } from 'wagmi/chains';
import { NEXT_PUBLIC_WC_PROJECT_ID } from './config';

export function useWamigConfig() {
export function useWagmiConfig() {
const projectId = NEXT_PUBLIC_WC_PROJECT_ID ?? '';
if (!projectId) {
const providerErrMessage =
Expand Down

0 comments on commit 28fecc6

Please sign in to comment.