@@ -165,14 +165,12 @@ export async function commitEnsRegistrationAction({
165165 founders,
166166 threshold,
167167 durationYears = 1 ,
168- reverseRecord = false ,
169168 paymentTxHash,
170169} : {
171170 ensName : string
172171 founders : BackendFounderInput [ ]
173172 threshold : number
174173 durationYears ?: number
175- reverseRecord ?: boolean
176174 paymentTxHash : string // SECURITY: Required, verified on-chain
177175} ) {
178176 console . log ( LOG_PREFIX , '=== commitEnsRegistrationAction START ===' )
@@ -201,7 +199,11 @@ export async function commitEnsRegistrationAction({
201199
202200 // Calculate expected cost for verification
203201 const verificationYears = Math . max ( 1 , Math . floor ( durationYears ) )
204- const { totalWei } = await getEnsRegistrationCostAction ( ensName , verificationYears , founders . length )
202+ const { totalWei } = await getEnsRegistrationCostAction (
203+ ensName ,
204+ verificationYears ,
205+ founders . length
206+ )
205207 console . log ( LOG_PREFIX , 'Expected payment amount:' , totalWei )
206208
207209 const paymentStatus = await checkPaymentStatusAction ( {
@@ -274,7 +276,6 @@ export async function commitEnsRegistrationAction({
274276 secret,
275277 resolverAddress : getEnsResolverAddress ( STARTUPCHAIN_CHAIN_ID ) ,
276278 records : undefined ,
277- reverseRecord,
278279 fuses : {
279280 named : [ ] ,
280281 unnamed : [ ] ,
@@ -546,11 +547,10 @@ export async function finalizeEnsRegistrationAction({
546547 registrationTxHash
547548 )
548549 try {
549- const receipt = await startupChainPublicClient . waitForTransactionReceipt (
550- {
550+ const receipt =
551+ await startupChainPublicClient . waitForTransactionReceipt ( {
551552 hash : registrationTxHash ,
552- }
553- )
553+ } )
554554 if ( receipt . status === 'reverted' ) {
555555 await updatePendingRegistration ( {
556556 registrationTxHash : undefined ,
@@ -576,7 +576,6 @@ export async function finalizeEnsRegistrationAction({
576576 secret : pending . secret ,
577577 resolverAddress : getEnsResolverAddress ( STARTUPCHAIN_CHAIN_ID ) ,
578578 records : undefined ,
579- reverseRecord : false ,
580579 fuses : {
581580 named : [ ] ,
582581 unnamed : [ ] ,
@@ -610,11 +609,10 @@ export async function finalizeEnsRegistrationAction({
610609 } )
611610
612611 console . log ( LOG_PREFIX , 'Waiting for ENS registration receipt...' )
613- const receipt = await startupChainPublicClient . waitForTransactionReceipt (
614- {
612+ const receipt =
613+ await startupChainPublicClient . waitForTransactionReceipt ( {
615614 hash : registrationTxHash ,
616- }
617- )
615+ } )
618616 if ( receipt . status === 'reverted' ) {
619617 await updatePendingRegistration ( {
620618 registrationTxHash : undefined ,
@@ -645,7 +643,10 @@ export async function finalizeEnsRegistrationAction({
645643 }
646644
647645 await setPendingRegistration ( readyToRecord )
648- console . log ( LOG_PREFIX , '=== finalizeEnsRegistrationAction COMPLETE - ready for client signing ===' )
646+ console . log (
647+ LOG_PREFIX ,
648+ '=== finalizeEnsRegistrationAction COMPLETE - ready for client signing ==='
649+ )
649650
650651 return readyToRecord
651652 } catch ( err ) {
@@ -658,8 +659,7 @@ export async function finalizeEnsRegistrationAction({
658659 message . includes ( 'ENS name already taken' )
659660 const alreadySubmittedAndPending =
660661 message === ENS_REGISTRATION_RETRY_MESSAGE
661- const revertedRegistrationTx =
662- message === ENS_REGISTRATION_REVERTED_MESSAGE
662+ const revertedRegistrationTx = message === ENS_REGISTRATION_REVERTED_MESSAGE
663663
664664 if ( alreadyRegistered ) {
665665 const resolvedRegistrationTx =
@@ -785,7 +785,11 @@ export async function getRecordCompanyDataAction() {
785785 */
786786export async function resumeRegistrationAction ( ) {
787787 const pending = await getPendingRegistration ( )
788- if ( ! pending || pending . status === 'completed' || pending . status === 'failed' ) {
788+ if (
789+ ! pending ||
790+ pending . status === 'completed' ||
791+ pending . status === 'failed'
792+ ) {
789793 return null
790794 }
791795 return pending
0 commit comments