Skip to content

Commit

Permalink
chore: environments rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Jun 14, 2024
1 parent 3896066 commit c2f7736
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion environments/bun/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mainnet } from 'viem/chains'

const client = createPublicClient({
chain: mainnet,
transport: http(),
transport: http('https://eth.drpc.org'),
})

const webSocketClient = createPublicClient({
Expand Down
2 changes: 1 addition & 1 deletion environments/next/src/app/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function Client() {
;(async () => {
const client = createPublicClient({
chain: mainnet,
transport: http(),
transport: http('https://eth.drpc.org'),
})

const webSocketClient = createPublicClient({
Expand Down
2 changes: 1 addition & 1 deletion environments/next/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Client } from './client'
export default async function Home() {
const client = createPublicClient({
chain: mainnet,
transport: http(),
transport: http('https://eth.drpc.org'),
})

const webSocketClient = createPublicClient({
Expand Down
2 changes: 1 addition & 1 deletion environments/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { mainnet } = require('viem/chains')

const client = createPublicClient({
chain: mainnet,
transport: http(),
transport: http('https://eth.drpc.org'),
})

const webSocketClient = createPublicClient({
Expand Down
2 changes: 1 addition & 1 deletion environments/tsc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mainnet } from 'viem/chains'
;(async () => {
const client = createPublicClient({
chain: mainnet,
transport: http(),
transport: http('https://eth.drpc.org'),
})

const webSocketClient = createPublicClient({
Expand Down
2 changes: 1 addition & 1 deletion environments/vite/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mainnet } from 'viem/chains'

const client = createPublicClient({
chain: mainnet,
transport: http(),
transport: http('https://eth.drpc.org'),
})

const webSocketClient = createPublicClient({
Expand Down

0 comments on commit c2f7736

Please sign in to comment.