Hey all, there's currently a bug on Mumbai causing deployed addresses to be incorrect. This is causing the constructor of the NFT contract to approve the wrong address for NFT purchases (because it uses the address of the Market deployment for approval) — causing the annoying "execution reverted: ERC721: approve caller is not owner nor approved for all" error.
Try using Mainnet (yes, you'll have to use real money) but it works!
Hey Everyone, I have my primary skills in 📱AppDev (Flutter ) and secondary in 🌐WebDev (MERN). I also write📝 book review articles, you can check them out.
Hey all, there's currently a bug on Mumbai causing deployed addresses to be incorrect. This is causing the constructor of the
NFT
contract to approve the wrong address for NFT purchases (because it uses the address of the Market deployment for approval) — causing the annoying"execution reverted: ERC721: approve caller is not owner nor approved for all"
error.Try using Mainnet (yes, you'll have to use real money) but it works!
Reference: github.com/nomiclabs/hardhat/issue...
Here's a workaround deploy script that will make it work on Mumbai. Replace
main()
indeploy.js
with:Thank you so much, finally it solved after 3 days of suffering.
Thank You again.
what did you do?