@@ -185,34 +185,38 @@ export default function PresaleCreation() {
185185 endTimeUnix
186186 ) ;
187187 console . log ( "- No Time Limit:" , values . noTimeLimit ) ;
188- console . log ( "- Full args array:" , [ {
189- name : values . name ,
190- symbol : values . symbol ,
191- supply : BigInt ( cleanSupply ) ,
192- price : priceinETH ,
193- hardCap : hardCapInETH ,
194- softCap : softCapInETH ,
195- startTime : BigInt ( startTimeUnix ) ,
196- endTime : BigInt ( endTimeUnix ) ,
197- softCapPrice : softCapPriceInETH ,
198- } ] ) ;
188+ console . log ( "- Full args array:" , [
189+ {
190+ name : values . name ,
191+ symbol : values . symbol ,
192+ supply : BigInt ( cleanSupply ) ,
193+ price : priceinETH ,
194+ hardCap : hardCapInETH ,
195+ softCap : softCapInETH ,
196+ startTime : BigInt ( startTimeUnix ) ,
197+ endTime : BigInt ( endTimeUnix ) ,
198+ softCapPrice : softCapPriceInETH ,
199+ } ,
200+ ] ) ;
199201
200202 if ( contractAddress ) {
201203 createPresale ( {
202204 address : contractAddress ,
203205 abi : PresaleFactoryABI ,
204206 functionName : "createPresale" ,
205- args : [ {
206- name : values . name ,
207- symbol : values . symbol ,
208- supply : BigInt ( cleanSupply ) ,
209- price : priceinETH ,
210- hardCap : hardCapInETH ,
211- softCap : softCapInETH ,
212- startTime : BigInt ( startTimeUnix ) ,
213- endTime : BigInt ( endTimeUnix ) ,
214- softCapPrice : softCapPriceInETH ,
215- } ] ,
207+ args : [
208+ {
209+ name : values . name ,
210+ symbol : values . symbol ,
211+ supply : BigInt ( cleanSupply ) ,
212+ price : priceinETH ,
213+ hardCap : hardCapInETH ,
214+ softCap : softCapInETH ,
215+ startTime : BigInt ( startTimeUnix ) ,
216+ endTime : BigInt ( endTimeUnix ) ,
217+ softCapPrice : softCapPriceInETH ,
218+ } ,
219+ ] ,
216220 } ) ;
217221 }
218222 }
@@ -453,13 +457,18 @@ export default function PresaleCreation() {
453457 render = { ( { field } ) => (
454458 < FormItem >
455459 < FormLabel >
456- End Time { form . watch ( "hasSoftCap" ) && < span className = "text-red-500" > *</ span > }
460+ End Time{ " " }
461+ { form . watch ( "hasSoftCap" ) && (
462+ < span className = "text-red-500" > *</ span >
463+ ) }
457464 </ FormLabel >
458465 < FormControl >
459466 < Input
460467 type = "datetime-local"
461468 { ...field }
462- disabled = { form . watch ( "noTimeLimit" ) || form . watch ( "hasSoftCap" ) }
469+ disabled = {
470+ form . watch ( "noTimeLimit" ) || form . watch ( "hasSoftCap" )
471+ }
463472 />
464473 </ FormControl >
465474 < FormDescription >
0 commit comments