@@ -50,7 +50,9 @@ func BuildSignupTx(
5050 return nil , nil , NewInputValidationError ("empty region provided" )
5151 }
5252 if paymentAddress == "" {
53- return nil , nil , NewInputValidationError ("empty payment address provided" )
53+ return nil , nil , NewInputValidationError (
54+ "empty payment address provided" ,
55+ )
5456 }
5557 cfg := config .GetConfig ()
5658 cc , err := apolloBackend ()
@@ -60,14 +62,18 @@ func BuildSignupTx(
6062 // Decode payment address
6163 paymentAddr , err := serAddress .DecodeAddress (paymentAddress )
6264 if err != nil {
63- return nil , nil , NewInputValidationError ("failed to decode payment address" )
65+ return nil , nil , NewInputValidationError (
66+ "failed to decode payment address" ,
67+ )
6468 }
6569 // Determine owner credential
6670 ownerCredential := paymentAddr .PaymentPart
6771 if ownerAddress != "" && ownerAddress != paymentAddress {
6872 ownerAddr , err := serAddress .DecodeAddress (ownerAddress )
6973 if err != nil {
70- return nil , nil , NewInputValidationError ("failed to decode owner address" )
74+ return nil , nil , NewInputValidationError (
75+ "failed to decode owner address" ,
76+ )
7177 }
7278 ownerCredential = ownerAddr .PaymentPart
7379 }
@@ -92,7 +98,9 @@ func BuildSignupTx(
9298 return nil , nil , fmt .Errorf ("reference data: %w" , err )
9399 }
94100 default :
95- return nil , nil , errors .New ("reference data not provided (missing deps.Ref and deps.DB)" )
101+ return nil , nil , errors .New (
102+ "reference data not provided (missing deps.Ref and deps.DB)" ,
103+ )
96104 }
97105 // Validate region
98106 foundRegion := false
@@ -131,7 +139,9 @@ func BuildSignupTx(
131139 // Determine plan selection ID from price/duration
132140 selectionId , err := determinePlanSelection (refData , price , duration )
133141 if err != nil {
134- return nil , nil , NewInputValidationError ("could not determine plan selection from provided price/duration" )
142+ return nil , nil , NewInputValidationError (
143+ "could not determine plan selection from provided price/duration" ,
144+ )
135145 }
136146 // Get last known slot
137147 curSlot , err := cc .LastBlockSlot ()
0 commit comments