Skip to content

Commit

Permalink
Merge pull request #75 from nbaum/fix-marketplace-ownership-bug
Browse files Browse the repository at this point in the history
marketplace: Fix NFT transfer incomplete store update
  • Loading branch information
V-Staykov authored Feb 2, 2023
2 parents 7825481 + 613bca1 commit 77e4847
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 77e4847

Please sign in to comment.