hi I am trying to write test for testing nft contract with royalties and getting this error

Apr 23, 2022, 9:06 PM
Error: VM Exception while processing transaction: reverted with reason string 'ERC721: transfer to non ERC721Receiver implementer
The error is related to this line “await nft.mint(RC.address, [alice.address], baseURI, [initialRoyalty]);”
the first parameter should be address, I tried nft.address and roaylty.address, for both of them getting the same error
If I appreciate if somebody can give some comments
Apr 23, 2022, 9:10 PM
Oh you can't transfer NFT to a contract address without inheriting ERC722Receiver
Apr 23, 2022, 9:12 PM

© 2024 Draquery.com All rights reserved.