Skip to content

Lesson 15 : Error: VM Exception while processing transaction: reverted with custom error 'NftMarketplace__PriceNotMet("0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512", 0, 100000000000000000)' #2599

Answered by othaime-en
khodehSoroush asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @khodehSoroush i see an error in this section

await playerConnectedNftMarketplace.buyItem(basicNft.address, TOKEN_ID),
          { value: PRICE };

the { value: PRICE} should be inside the function call. It should be something like this

await playerConnectedNftMarketplace.buyItem(basicNft.address, TOKEN_ID, { value: PRICE });

Try that and tell me if it works

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@khodehSoroush
Comment options

Answer selected by khodehSoroush
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