Skip to content

Lesson 15: Buy Item Failed, Metamask #6090

Answered by TheDude-dev
TheDude-dev asked this question in Q&A
Discussion options

You must be logged in to vote

@alfaqi I fixed it! Thanks again for noticing that.

The problem was coming from my contract events ItemListed and one more event. I was emitting the nftAdress as the seller, the seller address as the nftAddress so my nft was owned my the basicNft contract itselft. Also The tokenId was emitted as the price and vice versa. Therefore my subgraph data was wrong. In short just a couple of typos in my contract. 😷

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TheDude-dev
Comment options

@alfaqi
Comment options

@TheDude-dev
Comment options

Answer selected by TheDude-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants