You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -133,6 +133,8 @@ export function AuthOptionsForm({
133
133
(data)=>{
134
134
if(
135
135
data.useSmartAccount&&
136
+
data.executionMode==="EIP4337"&&
137
+
data.accountFactoryType==="custom"&&
136
138
data.customAccountFactoryAddress&&
137
139
!isAddress(data.customAccountFactoryAddress)
138
140
){
@@ -145,6 +147,23 @@ export function AuthOptionsForm({
145
147
path: ["customAccountFactoryAddress"],
146
148
},
147
149
)
150
+
.refine(
151
+
(data)=>{
152
+
if(
153
+
data.useSmartAccount&&
154
+
data.executionMode==="EIP4337"&&
155
+
data.accountFactoryType==="custom"&&
156
+
!data.customAccountFactoryAddress
157
+
){
158
+
returnfalse;
159
+
}
160
+
returntrue;
161
+
},
162
+
{
163
+
message: "Please enter a custom account factory address",
0 commit comments