Skip to content

Commit

Permalink
wip: add network attr to chains in providers
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Feb 8, 2024
1 parent 8e2c31b commit 096cdfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/faucet/src/components/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getSiteUrl } from '@/lib/utils';
const queryClient = new QueryClient()

const wagmiConfig = createConfig({
chains: [eosEvmTestnet],
chains: [{network: "eosevmtestnet",...eosEvmTestnet}],
connectors: [
walletConnect({
projectId: "25a868c834c1003aa0f0b69aba0ae056",
Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/components/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
const queryClient = new QueryClient()

export const wagmiConfig = createConfig({
chains: [eosEvmTestnet],
chains: [{network: "eosevmtestnet",...eosEvmTestnet}],
connectors: [
// walletConnect({
// projectId: '25a868c834c1003aa0f0b69aba0ae056',
Expand Down
6 changes: 0 additions & 6 deletions apps/webapp/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { clsx, type ClassValue } from 'clsx'
import { customAlphabet } from 'nanoid'
import { twMerge } from 'tailwind-merge'
import { Address } from 'viem'
import BN from 'bn.js'
Expand All @@ -8,11 +7,6 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}

export const nanoid = customAlphabet(
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
7
) // 7-character random string

export async function fetcher<JSON = any>(
input: RequestInfo,
init?: RequestInit
Expand Down

0 comments on commit 096cdfc

Please sign in to comment.