Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend: Add a mapping from NFT to pairs #36

Open
rep00c opened this issue Sep 12, 2022 · 0 comments
Open

Recommend: Add a mapping from NFT to pairs #36

rep00c opened this issue Sep 12, 2022 · 0 comments

Comments

@rep00c
Copy link

rep00c commented Sep 12, 2022

If I want to know all pairs of a NFT, I have to request to thegraph.com API to get it.

I think it's a good idea to create a mapping in the factory contract somehow like:

mapping(address => address[]) public getPair;

so that we can get all pairs of a NFT easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant