Skip to content

Commit

Permalink
fix: bugfix for wrong key for GetDenomMetaData
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeseung-bae committed May 8, 2024
1 parent 43bd287 commit fc228d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/fswap/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (k Keeper) MakeSwap(ctx sdk.Context, swap types.Swap, toDenomMetadata bank.
panic(err)
}

existingMetadata, ok := k.GetDenomMetaData(ctx, swap.ToDenom)
existingMetadata, ok := k.GetDenomMetaData(ctx, toDenomMetadata.Base)
if !ok {
k.SetDenomMetaData(ctx, toDenomMetadata)
if err := eventManager.EmitTypedEvent(&(types.EventAddDenomMetadata{Metadata: toDenomMetadata})); err != nil {
Expand Down

0 comments on commit fc228d2

Please sign in to comment.