Skip to content

Commit

Permalink
marketplace: Transfer purchased NFT from its actual owner, not the se…
Browse files Browse the repository at this point in the history
…ller
  • Loading branch information
nbaum committed Feb 1, 2023
1 parent 7825481 commit 613bca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/marketplace/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 613bca1

Please sign in to comment.