File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -89,21 +89,21 @@ function useEIP7702Support(_rpcUrl: string) {
8989 from : "0xdeadbeef00000000000000000000000000000000" ,
9090 to : "0xdeadbeef00000000000000000000000000000000" ,
9191 data : "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ,
92- value : "0x0"
92+ value : "0x0" ,
9393 } ,
9494 "latest" ,
9595 {
9696 "0xdeadbeef00000000000000000000000000000000" : {
97- code : "0xef01000000000000000000000000000000000000000001"
98- }
99- }
97+ code : "0xef01000000000000000000000000000000000000000001" ,
98+ } ,
99+ } ,
100100 ] ,
101101 } ) ,
102102 method : "POST" ,
103103 } ) ;
104104
105105 const json = await res . json ( ) ;
106-
106+
107107 // If the response has a valid result object, EIP-7702 is enabled
108108 return {
109109 isSupported : ! ! json . result ,
@@ -186,7 +186,11 @@ export function ChainLiveStats(props: { rpc: string }) {
186186 { eip7702Support . isError ? (
187187 < Badge variant = "destructive" > Disabled</ Badge >
188188 ) : eip7702Support . data ? (
189- < Badge variant = { eip7702Support . data . isSupported ? "success" : "destructive" } >
189+ < Badge
190+ variant = {
191+ eip7702Support . data . isSupported ? "success" : "destructive"
192+ }
193+ >
190194 { eip7702Support . data . isSupported ? "Enabled" : "Disabled" }
191195 </ Badge >
192196 ) : (
You can’t perform that action at this time.
0 commit comments