gracelungu / nft-private-market-contract

2 stars 3 forks source link

Purchase token failing #1

Open rahulanand20 opened 2 years ago

rahulanand20 commented 2 years ago

Im not able to purchase the token as I'm getting this error image https://rinkeby.etherscan.io/tx/0x9ad06639a751d51de89a81c550b6969b859cee623cd867cfd41fc550bb6a717d

and i have sufficient eth in my wallet

gracelungu commented 2 years ago

Screen Shot 2022-07-22 at 7 15 46 PM

Hey @rahulanand20 , Looking at the image above, the error seems to be related to the Gas. Make sure you're making a valid transaction.

rahulanand20 commented 2 years ago

@gracelungu I have tested the contract thoroughly and the issue is if I try to create a token( the generated tokenn Id say is 1) if I purchase the same token it gives me the above error

So it allow me to purchase the token with tokenId 1 only when the another token is created,

Conclusion is it allows me to purchase a token when tokenid is present tokenId +1