@@ -148,8 +148,8 @@ export function FunctionCard({ fn, contract, contractArtifact, onSendTxRequested
148148 return { ...step , subtotal : acc } ;
149149 } ) ;
150150
151- const totalRPCCalls = Object . values ( profileResult . stats . nodeRPCCalls ?? { } ) . reduce (
152- ( acc , calls ) => acc + calls . times . length ,
151+ const totalRPCCalls = Object . values ( profileResult . stats . nodeRPCCalls ?. perMethod ?? { } ) . reduce (
152+ ( acc , calls ) => acc + ( calls ? .times . length ?? 0 ) ,
153153 0 ,
154154 ) ;
155155
@@ -211,7 +211,7 @@ export function FunctionCard({ fn, contract, contractArtifact, onSendTxRequested
211211 '& .MuiBadge-badge' : {
212212 backgroundColor : colors . secondary . main ,
213213 color : colors . text . primary ,
214- }
214+ } ,
215215 } }
216216 > </ Badge >
217217 </ Typography >
@@ -263,7 +263,15 @@ export function FunctionCard({ fn, contract, contractArtifact, onSendTxRequested
263263 < Typography variant = "body1" sx = { { fontWeight : 200 , marginRight : '0.5rem' } } >
264264 Simulation results:
265265 </ Typography >
266- < div css = { { backgroundColor : commonStyles . glassDark , border : commonStyles . borderNormal , color : colors . text . primary , padding : '0.5rem' , borderRadius : commonStyles . borderRadius } } >
266+ < div
267+ css = { {
268+ backgroundColor : commonStyles . glassDark ,
269+ border : commonStyles . borderNormal ,
270+ color : colors . text . primary ,
271+ padding : '0.5rem' ,
272+ borderRadius : commonStyles . borderRadius ,
273+ } }
274+ >
267275 { simulationResults ?. success ? (
268276 < Typography variant = "body1" > { simulationResults ?. data ?? 'No return value' } </ Typography >
269277 ) : (
@@ -281,7 +289,11 @@ export function FunctionCard({ fn, contract, contractArtifact, onSendTxRequested
281289 < >
282290 < TableContainer
283291 component = { Paper }
284- sx = { { marginRight : '0.5rem' , backgroundColor : 'rgba(0, 0, 0, 0.3)' , border : '1px solid rgba(212, 255, 40, 0.15)' } }
292+ sx = { {
293+ marginRight : '0.5rem' ,
294+ backgroundColor : 'rgba(0, 0, 0, 0.3)' ,
295+ border : '1px solid rgba(212, 255, 40, 0.15)' ,
296+ } }
285297 >
286298 < Table size = "small" >
287299 < TableHead >
0 commit comments