Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"react-dom": "^18.3.1",
"react-hot-toast": "^2.4.0",
"usehooks-ts": "^3.1.0",
"viem": "2.21.32",
"viem": "2.28.0",
"wagmi": "2.12.23",
"zustand": "^5.0.0"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/nextjs/scaffold.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { monadTestnet } from "./utils/customChains";
import * as chains from "viem/chains";

export type ScaffoldConfig = {
Expand All @@ -11,7 +10,7 @@ export type ScaffoldConfig = {

const scaffoldConfig = {
// The networks on which your DApp is live
targetNetworks: [monadTestnet],
targetNetworks: [chains.monadTestnet],

// The interval at which your front-end polls the RPC servers for new data
// it has no effect if you only target the local network (default is 4000)
Expand Down
21 changes: 0 additions & 21 deletions packages/nextjs/utils/customChains.ts

This file was deleted.

5 changes: 2 additions & 3 deletions packages/nextjs/utils/scaffold-eth/networks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { monadTestnet } from "../customChains";
import * as chains from "viem/chains";
import scaffoldConfig from "~~/scaffold.config";

Expand All @@ -14,7 +13,7 @@ export type ChainWithAttributes = chains.Chain & Partial<ChainAttributes>;

// Mapping of chainId to RPC chain name an format followed by alchemy and infura
export const RPC_CHAIN_NAMES: Record<number, string> = {
[monadTestnet.id]: "monad-testnet",
[chains.monadTestnet.id]: "monad-testnet",
};

export const getAlchemyHttpUrl = (chainId: number) => {
Expand All @@ -24,7 +23,7 @@ export const getAlchemyHttpUrl = (chainId: number) => {
};

export const NETWORKS_EXTRA_DATA: Record<string, ChainAttributes> = {
[monadTestnet.id]: {
[chains.monadTestnet.id]: {
color: "#200052",
},
};
Expand Down
Loading