From 613bca166aaac1868b7706b649cfd0ce9e04ff7d Mon Sep 17 00:00:00 2001 From: Nathan Baum Date: Wed, 1 Feb 2023 17:47:35 +0000 Subject: [PATCH] marketplace: Transfer purchased NFT from its actual owner, not the seller --- x/marketplace/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/marketplace/keeper/keeper.go b/x/marketplace/keeper/keeper.go index 74be7c2a..7f91aefb 100644 --- a/x/marketplace/keeper/keeper.go +++ b/x/marketplace/keeper/keeper.go @@ -173,7 +173,7 @@ func (k Keeper) BuyNFT(ctx sdk.Context, nftID uint64, buyer sdk.AccAddress) (typ return types.Nft{}, err } - k.nftKeeper.TransferNftInternal(ctx, nft.DenomId, nft.TokenId, sdk.AccAddress(nft.Owner), buyer, baseNft) + k.nftKeeper.TransferNftInternal(ctx, nft.DenomId, nft.TokenId, baseNft.GetOwner(), buyer, baseNft) return nft, nil }