I have two Token Contracts ("AA" = ERC721, "BB" = ERC20).
I will make "Swap Contract" that can give "BB" differently according to the "AA"'s metadata. (e.g. "level").
How do I make the "Swap Contract" for this function to work?
Any example plz.
I have two Token Contracts ("AA" = ERC721, "BB" = ERC20).
I will make "Swap Contract" that can give "BB" differently according to the "AA"'s metadata. (e.g. "level").
How do I make the "Swap Contract" for this function to work?
Any example plz.
If you are hosting the metadata outside the blockchain you can't do that. You need to use an oracle. Read more.