File tree Expand file tree Collapse file tree 4 files changed +36
-36
lines changed Expand file tree Collapse file tree 4 files changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ export default function InteractionClient() {
225
225
setIsSyncing ( true ) ;
226
226
console . log ( 'Fetching token details from blockchain...' , { tokenAddress, chainId } ) ;
227
227
228
- const publicClient = getPublicClient ( config , { chainId : chainId as any } ) ;
228
+ const publicClient = getPublicClient ( config , { chainId } ) ;
229
229
if ( ! publicClient ) {
230
230
throw new Error ( `No public client available for chain ${ chainId } ` ) ;
231
231
}
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export default function MyCATsPage() {
187
187
for ( const [ chainId , factoryAddress ] of Object . entries ( ClowderVaultFactories ) ) {
188
188
if ( ! isValidChainId ( chainId ) ) continue ;
189
189
190
- const publicClient = getPublicClient ( config , { chainId : Number ( chainId ) as any } ) ;
190
+ const publicClient = getPublicClient ( config , { chainId } ) ;
191
191
if ( ! publicClient ) continue ;
192
192
193
193
try {
@@ -596,7 +596,7 @@ export default function MyCATsPage() {
596
596
chainId : SupportedChainId ,
597
597
defaultRole : 'admin' | 'minter' | 'both'
598
598
) : Promise < CatDetails [ ] > => {
599
- const publicClient = getPublicClient ( config , { chainId : chainId as any } ) ;
599
+ const publicClient = getPublicClient ( config , { chainId } ) ;
600
600
if ( ! publicClient || ! addresses . length ) return [ ] ;
601
601
602
602
try {
Original file line number Diff line number Diff line change 1
- // import { defineChain } from "viem";
1
+ import { defineChain } from "viem" ;
2
2
3
- // export const ethereumClassic = defineChain({
4
- // id: 61,
5
- // name: "Ethereum Classic",
6
- // network: "ethereumClassic",
7
- // nativeCurrency: {
8
- // name: "Ethereum Classic",
9
- // symbol: "ETC",
10
- // decimals: 18,
11
- // },
12
- // rpcUrls: {
13
- // default: {
14
- // http: ["https://etc.rivet.link"],
15
- // },
16
- // public: {
17
- // http: ["https://etc.rivet.link"],
18
- // },
19
- // },
20
- // blockExplorers: {
21
- // default: {
22
- // name: "BlockScout",
23
- // url: "https://blockscout.com/etc/mainnet",
24
- // },
25
- // },
26
- // });
3
+ export const ethereumClassic = defineChain ( {
4
+ id : 61 ,
5
+ name : "Ethereum Classic" ,
6
+ network : "ethereumClassic" ,
7
+ nativeCurrency : {
8
+ name : "Ethereum Classic" ,
9
+ symbol : "ETC" ,
10
+ decimals : 18 ,
11
+ } ,
12
+ rpcUrls : {
13
+ default : {
14
+ http : [ "https://etc.rivet.link" ] ,
15
+ } ,
16
+ public : {
17
+ http : [ "https://etc.rivet.link" ] ,
18
+ } ,
19
+ } ,
20
+ blockExplorers : {
21
+ default : {
22
+ name : "BlockScout" ,
23
+ url : "https://blockscout.com/etc/mainnet" ,
24
+ } ,
25
+ } ,
26
+ } ) ;
Original file line number Diff line number Diff line change 1
1
import {
2
- // polygon,
3
- // scrollSepolia,
4
- // base,
2
+ polygon ,
3
+ scrollSepolia ,
4
+ base ,
5
5
} from "wagmi/chains" ;
6
6
import {
7
7
getDefaultConfig ,
8
8
} from "@rainbow-me/rainbowkit" ;
9
9
import { citreaTestnet } from "@/components/CitreaTestnet" ;
10
- // import { ethereumClassic } from "@/components/EthereumClassic";
10
+ import { ethereumClassic } from "@/components/EthereumClassic" ;
11
11
12
12
export const config = getDefaultConfig ( {
13
13
appName : "clowder" ,
14
14
projectId : process . env . NEXT_PUBLIC_PROJECT_ID ?? "" ,
15
15
chains : [
16
- // scrollSepolia,
17
- // base,
18
- // polygon,
19
- // ethereumClassic,
16
+ scrollSepolia ,
17
+ base ,
18
+ polygon ,
19
+ ethereumClassic ,
20
20
citreaTestnet ,
21
21
] as const ,
22
22
ssr : true , // Disable SSR for static export
You can’t perform that action at this time.
0 commit comments