File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import '@/app/fonts.scss';
33
44import type { Viewport } from 'next' ;
55import Navigation from '@/components/Navigation' ;
6+ import AbstractProvider from '@/providers/AbstractProvider' ;
67
78import styles from './styles.module.scss' ;
89
@@ -22,8 +23,10 @@ export default function RootLayout({ children }: { children: React.ReactNode })
2223 return (
2324 < html className = { styles . html } lang = "en" >
2425 < body className = { styles . body } >
25- < Navigation />
26- < main className = { styles . main } > { children } </ main >
26+ < AbstractProvider >
27+ < Navigation />
28+ < main className = { styles . main } > { children } </ main >
29+ </ AbstractProvider >
2730 </ body >
2831 </ html >
2932 ) ;
Original file line number Diff line number Diff line change 22
33import { AbstractWalletProvider } from '@abstract-foundation/agw-react' ;
44import type { Chain } from 'viem/chains' ;
5+ import { abstract } from 'viem/chains' ;
56
67export default function AbstractProvider ( {
78 chain,
89 children,
910} : {
10- chain : Chain ;
11+ chain ? : Chain ;
1112 children : React . ReactNode ;
1213} ) {
13- return < AbstractWalletProvider chain = { chain } > { children } </ AbstractWalletProvider > ;
14+ return < AbstractWalletProvider chain = { chain ?? abstract } > { children } </ AbstractWalletProvider > ;
1415}
You can’t perform that action at this time.
0 commit comments