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

Examples: add token-based #365

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Examples: add token-based #365

wants to merge 4 commits into from

Conversation

NateWilliams2
Copy link
Contributor

Add a token-based census example to the examples/ folder.

Copy link

github-actions bot commented Mar 21, 2024

size-limit report 📦

Path Size
dist/index.js 1.54 MB (0%)
dist/index.mjs 1.54 MB (0%)
dist/index.umd.js 1.54 MB (0%)

@NateWilliams2 NateWilliams2 requested a review from emmdim March 26, 2024 15:24
Copy link
Collaborator

@marcvelmer marcvelmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the examples should work directly without any user interaction. In this case, it cannot work without defining a token that also has to be synced in the census3 service. For me that's too much for a user that just wants to test something.

How about printing all the available tokens from the census3 service and let the user interactively select one of them? So you don't have to check if the token exists in the census3.

I would also define the voters array with random wallets.

@NateWilliams2 NateWilliams2 requested a review from p4u April 23, 2024 22:26
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

Successfully merging this pull request may close these issues.

2 participants