59
59
60
60
const Local L1NodeNetworkOption = "Local"
61
61
62
- func (option L1NodeNetworkOption ) GetNetworkType () string {
63
- switch option {
62
+ func (l L1NodeNetworkOption ) GetNetworkType () string {
63
+ switch l {
64
64
case Mainnet :
65
65
return "mainnet"
66
66
case Testnet :
@@ -204,9 +204,9 @@ func (m *RunL1NodeVersionSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
204
204
}
205
205
selected , cmd := m .Select (msg )
206
206
if selected != nil {
207
- analytics .TrackEvent (analytics .L1NodeVersionSelected , analytics .NewEmptyEvent ().Add (analytics .OptionEventKey , string ( * selected ) ))
207
+ analytics .TrackEvent (analytics .L1NodeVersionSelected , analytics .NewEmptyEvent ().Add (analytics .OptionEventKey , * selected ))
208
208
state := weavecontext.PushPageAndGetState [RunL1NodeState ](m )
209
- state .initiadVersion = string ( * selected )
209
+ state .initiadVersion = * selected
210
210
state .initiadEndpoint = m .versions [* selected ]
211
211
state .weave .PushPreviousResponse (styles .RenderPreviousResponse (styles .DotsSeparator , m .GetQuestion (), m .highlights , state .initiadVersion ))
212
212
@@ -230,15 +230,15 @@ type RunL1NodeChainIdInput struct {
230
230
}
231
231
232
232
func NewRunL1NodeChainIdInput (ctx context.Context ) * RunL1NodeChainIdInput {
233
- tooltip := tooltip .L1ChainIdTooltip
233
+ toolTip := tooltip .L1ChainIdTooltip
234
234
model := & RunL1NodeChainIdInput {
235
235
TextInput : ui .NewTextInput (false ),
236
236
BaseModel : weavecontext.BaseModel {Ctx : ctx },
237
237
question : "Specify the chain ID" ,
238
238
highlights : []string {"chain ID" },
239
239
}
240
240
model .WithPlaceholder ("Enter your chain ID ex. local-initia-1" )
241
- model .WithTooltip (& tooltip )
241
+ model .WithTooltip (& toolTip )
242
242
return model
243
243
}
244
244
@@ -377,7 +377,7 @@ type RunL1NodeMonikerInput struct {
377
377
}
378
378
379
379
func NewRunL1NodeMonikerInput (ctx context.Context ) * RunL1NodeMonikerInput {
380
- tooltip := tooltip .MonikerTooltip
380
+ toolTip := tooltip .MonikerTooltip
381
381
model := & RunL1NodeMonikerInput {
382
382
TextInput : ui .NewTextInput (false ),
383
383
BaseModel : weavecontext.BaseModel {Ctx : ctx },
@@ -386,7 +386,7 @@ func NewRunL1NodeMonikerInput(ctx context.Context) *RunL1NodeMonikerInput {
386
386
}
387
387
model .WithPlaceholder ("Enter moniker ex. my-initia-node" )
388
388
model .WithValidatorFn (common .ValidateEmptyString )
389
- model .WithTooltip (& tooltip )
389
+ model .WithTooltip (& toolTip )
390
390
return model
391
391
}
392
392
@@ -438,7 +438,7 @@ type MinGasPriceInput struct {
438
438
}
439
439
440
440
func NewMinGasPriceInput (ctx context.Context ) * MinGasPriceInput {
441
- tooltip := tooltip .L1MinGasPriceTooltip
441
+ toolTip := tooltip .L1MinGasPriceTooltip
442
442
model := & MinGasPriceInput {
443
443
TextInput : ui .NewTextInput (false ),
444
444
BaseModel : weavecontext.BaseModel {Ctx : ctx },
@@ -447,7 +447,7 @@ func NewMinGasPriceInput(ctx context.Context) *MinGasPriceInput {
447
447
}
448
448
model .WithPlaceholder ("Enter a number with its denom ex. 0.15uinit" )
449
449
model .WithValidatorFn (common .ValidateDecCoin )
450
- model .WithTooltip (& tooltip )
450
+ model .WithTooltip (& toolTip )
451
451
return model
452
452
}
453
453
@@ -569,15 +569,15 @@ type SeedsInput struct {
569
569
}
570
570
571
571
func NewSeedsInput (ctx context.Context ) * SeedsInput {
572
- tooltip := tooltip .L1SeedsTooltip
572
+ toolTip := tooltip .L1SeedsTooltip
573
573
model := & SeedsInput {
574
574
TextInput : ui .NewTextInput (false ),
575
575
BaseModel : weavecontext.BaseModel {Ctx : ctx },
576
576
question : "Specify seeds" ,
577
577
highlights : []string {"seeds" },
578
578
}
579
579
model .WithValidatorFn (common .IsValidPeerOrSeed )
580
- model .WithTooltip (& tooltip )
580
+ model .WithTooltip (& toolTip )
581
581
582
582
state := weavecontext.GetCurrentState [RunL1NodeState ](ctx )
583
583
if state .network != string (Local ) {
@@ -633,15 +633,15 @@ type PersistentPeersInput struct {
633
633
}
634
634
635
635
func NewPersistentPeersInput (ctx context.Context ) * PersistentPeersInput {
636
- tooltip := tooltip .L1PersistentPeersTooltip
636
+ toolTip := tooltip .L1PersistentPeersTooltip
637
637
model := & PersistentPeersInput {
638
638
TextInput : ui .NewTextInput (false ),
639
639
BaseModel : weavecontext.BaseModel {Ctx : ctx },
640
640
question : "Specify persistent peers" ,
641
641
highlights : []string {"persistent peers" },
642
642
}
643
643
model .WithValidatorFn (common .IsValidPeerOrSeed )
644
- model .WithTooltip (& tooltip )
644
+ model .WithTooltip (& toolTip )
645
645
646
646
state := weavecontext.GetCurrentState [RunL1NodeState ](ctx )
647
647
if state .network != string (Local ) {
@@ -929,7 +929,7 @@ type GenesisEndpointInput struct {
929
929
}
930
930
931
931
func NewGenesisEndpointInput (ctx context.Context ) * GenesisEndpointInput {
932
- tooltip := tooltip .L1GenesisEndpointTooltip
932
+ toolTip := tooltip .L1GenesisEndpointTooltip
933
933
model := & GenesisEndpointInput {
934
934
TextInput : ui .NewTextInput (true ),
935
935
BaseModel : weavecontext.BaseModel {Ctx : ctx , CannotBack : true },
@@ -938,7 +938,7 @@ func NewGenesisEndpointInput(ctx context.Context) *GenesisEndpointInput {
938
938
highlights : []string {"genesis.json" },
939
939
}
940
940
model .WithPlaceholder ("Enter a valid URL" )
941
- model .WithTooltip (& tooltip )
941
+ model .WithTooltip (& toolTip )
942
942
return model
943
943
}
944
944
0 commit comments