Lesson 15: Buy Item Failed, Metamask #6090
Answered
by
TheDude-dev
TheDude-dev
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
TheDude-dev
Sep 8, 2023
Replies: 1 comment 3 replies
-
check you covert functionality, because you are sending |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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. 😷