@@ -344,8 +344,8 @@ func (m *VMTypeSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
344344
345345 state .weave .PushPreviousResponse (styles .RenderPreviousResponse (styles .ArrowSeparator , m .GetQuestion (), m .highlights , string (* selected )))
346346 state .vmType = string (* selected )
347- model := NewLatestVersionLoading (weavecontext .SetCurrentState (m .Ctx , state ))
348347
348+ model := NewLatestVersionLoading (weavecontext .SetCurrentState (m .Ctx , state ))
349349 return model , model .Init ()
350350 }
351351
@@ -485,16 +485,28 @@ type GasDenomInput struct {
485485}
486486
487487func NewGasDenomInput (ctx context.Context ) * GasDenomInput {
488+ var defaultDenom string
489+ var validateFn func (s string ) error
490+
491+ state := weavecontext.GetCurrentState [LaunchState ](ctx )
492+ if state .vmType == string (EVM ) {
493+ defaultDenom = DefaultMinievmDenom
494+ validateFn = common .ValidateDenomWithReserved ([]string {DefaultRollupDenom })
495+ } else {
496+ defaultDenom = DefaultRollupDenom
497+ validateFn = common .ValidateDenom
498+ }
499+
488500 toolTip := tooltip .RollupGasDenomTooltip
489501 model := & GasDenomInput {
490502 TextInput : ui .NewTextInput (false ),
491503 BaseModel : weavecontext.BaseModel {Ctx : ctx },
492504 question : "Specify rollup gas denom" ,
493505 highlights : []string {"rollup gas denom" },
494506 }
495- model .WithPlaceholder (`Press tab to use "umin"` )
496- model .WithDefaultValue ("umin" )
497- model .WithValidatorFn (common . ValidateDenom )
507+ model .WithPlaceholder (fmt . Sprintf ( `Press tab to use "%s"` , defaultDenom ) )
508+ model .WithDefaultValue (defaultDenom )
509+ model .WithValidatorFn (validateFn )
498510 model .WithTooltip (& toolTip )
499511 return model
500512}
0 commit comments