I am trying to write a function in our erc721 contract to purchase an nft token with an erc20 token. As I understand it, it is not possible to import erc20 into an erc721. Does that mean the purchase function goes into a separate contract by itself? In that case, how would we access the mint function from the erc721 contract?
I have searched all over google and stack exchange with "solidity purchase nft with erc20 token", and can't find anything. Which means i am probably missing something obvious