Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-zq committed Apr 18, 2024
1 parent 946b915 commit 3c962a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/token/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ func (k Keeper) EditToken(

if name != v1.DoNotModify {
token.Name = name

metadata, _ := k.bankKeeper.GetDenomMetaData(ctx, token.MinUnit)
metadata.Description = name

k.bankKeeper.SetDenomMetaData(ctx, metadata)
metadata, exist := k.bankKeeper.GetDenomMetaData(ctx, token.MinUnit)
if exist {
metadata.Description = name
k.bankKeeper.SetDenomMetaData(ctx, metadata)
}
}

if mintable != types.Nil {
Expand Down

0 comments on commit 3c962a2

Please sign in to comment.