Skip to content

Commit

Permalink
fix(staking): default moniker value
Browse files Browse the repository at this point in the history
  • Loading branch information
ezreal1997 committed Oct 17, 2024
1 parent cdb79cc commit 997ed60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/x/evmstaking/keeper/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ func (k Keeper) ProcessCreateValidator(ctx context.Context, ev *bindings.IPToken
}

moniker := ev.Moniker
if moniker == "validator" {
moniker = validatorAddr.String() // use validator address as moniker if not provided (ie. "validator")
if moniker == "" {
moniker = validatorAddr.String() // use validator address as moniker if not provided
}

var tokenType stypes.TokenType
Expand Down

0 comments on commit 997ed60

Please sign in to comment.