Replies: 1 comment 4 replies
-
@usman571 Update it like this; await expect(
nftMarketplace.listItem(basicNft.address, TOKEN_ID, PRICE)
).to.be.revertedWithCustomError(nftMarketplace, error) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi anyone, i'm stucked here.
when i test it gaves me the following error
AssertionError: Expected transaction to be reverted with reason 'AlreadyListed("0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512", 0)', but it reverted with a custom error
Beta Was this translation helpful? Give feedback.
All reactions