chiru-labs / ERC721A

https://ERC721A.org
MIT License
2.5k stars 839 forks source link

fail mint in other contract #461

Open mountainworld opened 1 year ago

mountainworld commented 1 year ago

i use the mint function in other contract,but it tips me execution reverted ......, is the ERC721A mint function not permit used in contract?

roxdiego commented 1 year ago

When you mint a contract you are inheriting, you need to approve that contract so it can mint the token for you