LESSON 15: unit test error #5117
Replies: 2 comments
-
You should check the ListItem test case, which lists the item on the marketplace, and ensure that it is properly listing the correct contract and token ID. You should also verify that the contract at the specified address is the correct contract and that it has been deployed to the correct network. Additionally, you should verify that the specified token ID exists and has been properly minted. |
Beta Was this translation helpful? Give feedback.
-
Solved. I had a misspell in my isListed modifier. Unit testing can be tough sometimes but it navigates us to problems in our contract so it is pretty cool :D |
Beta Was this translation helpful? Give feedback.
-
Hello I have been battling the whole day now with this problem. Error occurs in the Lesson 15 when we unit test.
When run test on the first describe, which lists and then buys the nft I get this error:
Thanks everybody in advance 🙏
My Unit Test File:
My NFTMarketplace.sol file:
Beta Was this translation helpful? Give feedback.
All reactions