@@ -74,7 +74,19 @@ type ChainId =
7474 | "111557560"
7575 | "999999999"
7676 | "11155111"
77- | "421614" ;
77+ | "420120000"
78+ | "420120001" ;
79+
80+ const interopChains = [
81+ "84532" ,
82+ "11155420" ,
83+ "919" ,
84+ "111557560" ,
85+ "999999999" ,
86+ "11155111" ,
87+ "420120000" ,
88+ "420120001" ,
89+ ] ;
7890
7991const formSchema = z . object ( {
8092 amounts : z . object ( {
@@ -84,7 +96,8 @@ const formSchema = z.object({
8496 "111557560" : z . string ( ) ,
8597 "999999999" : z . string ( ) ,
8698 "11155111" : z . string ( ) ,
87- "421614" : z . string ( ) ,
99+ "420120000" : z . string ( ) ,
100+ "420120001" : z . string ( ) ,
88101 } ) ,
89102} ) ;
90103type FormSchema = z . output < typeof formSchema > ;
@@ -182,15 +195,16 @@ export function DataTable({
182195
183196 const form = useForm < FormSchema > ( {
184197 resolver : zodResolver ( formSchema ) ,
185- values : {
198+ defaultValues : {
186199 amounts : {
187200 "84532" : "" , // Base
188201 "11155420" : "" , // OP testnet
189202 "919" : "" , // Mode Network
190203 "111557560" : "" , // Cyber
191204 "999999999" : "" , // Zora
192205 "11155111" : "" , // Sepolia
193- "421614" : "" ,
206+ "420120000" : "" ,
207+ "420120001" : "" ,
194208 } ,
195209 } ,
196210 } ) ;
@@ -284,12 +298,12 @@ export function DataTable({
284298 accessorKey : "transfer" ,
285299 header : "" ,
286300 cell : ( { row } ) => {
301+ const chain = row . getValue ( "chainId" ) ;
287302 if (
288303 row . getValue ( "status" ) === "DEPLOYED" &&
289- // coreContract. chain.id === 11155111 &&
304+ interopChains . includes ( String ( chain ) ) &&
290305 isCrosschain
291306 ) {
292- // const chain = row.getValue("chainId");
293307 return (
294308 < FormField
295309 disabled = { false }
@@ -298,7 +312,7 @@ export function DataTable({
298312 render = { ( { field } ) => (
299313 < FormItem >
300314 < FormControl >
301- < ToolTipLabel label = "Coming soon " >
315+ < ToolTipLabel label = "Bridge tokens " >
302316 < div className = "flex" >
303317 < Input
304318 className = "w-22 rounded-r-none border-r-0"
@@ -315,7 +329,7 @@ export function DataTable({
315329 }
316330 className = "rounded-lg rounded-l-none border border-l-0"
317331 >
318- Transfer
332+ Bridge
319333 </ Button >
320334 </ div >
321335 </ ToolTipLabel >
0 commit comments