From fc228d229f823d9f27031a5e710ed7cb2c4339c5 Mon Sep 17 00:00:00 2001 From: "jaeseung.bae" Date: Wed, 8 May 2024 21:12:22 +0900 Subject: [PATCH] fix: bugfix for wrong key for GetDenomMetaData --- x/fswap/keeper/proposal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/fswap/keeper/proposal.go b/x/fswap/keeper/proposal.go index 836f10f0f5..0d4df1dc46 100644 --- a/x/fswap/keeper/proposal.go +++ b/x/fswap/keeper/proposal.go @@ -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 {