Reputation: 13
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.
Upvotes: 1
Views: 955
Reputation: 128
If you are hosting the metadata outside the blockchain you can't do that. You need to use an oracle. Read more.
Upvotes: 1