File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
components/workflow/config Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,12 @@ function AbiFunctionSelectField({
137137 return [ ] ;
138138 }
139139
140- // Extract all functions from the ABI
140+ // Extract only read-only functions (view/pure) from the ABI
141141 return abi
142- . filter ( ( item ) => item . type === "function" )
142+ . filter ( ( item ) =>
143+ item . type === "function" &&
144+ ( item . stateMutability === "view" || item . stateMutability === "pure" )
145+ )
143146 . map ( ( func ) => {
144147 const inputs = func . inputs || [ ] ;
145148 const params = inputs
@@ -177,7 +180,7 @@ function AbiFunctionSelectField({
177180 < SelectContent >
178181 { functions . map ( ( func ) => (
179182 < SelectItem key = { func . name } value = { func . name } >
180- < div className = "flex flex-col" >
183+ < div className = "flex flex-col items-start " >
181184 < span > { func . label } </ span >
182185 < span className = "text-muted-foreground text-xs" >
183186 { func . stateMutability }
You can’t perform that action at this time.
0 commit comments