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

Change server-side tutorial to use faucet #236

Open
mitschabaude opened this issue Jan 12, 2023 · 1 comment
Open

Change server-side tutorial to use faucet #236

mitschabaude opened this issue Jan 12, 2023 · 1 comment
Labels
docs Improvements or additions to documentation Tutorials How to, step-by-step developer walk throughs

Comments

@mitschabaude
Copy link
Contributor

mitschabaude commented Jan 12, 2023

  • there is now an interact.ts script in the zk project template, which covers a subset of the tutorial (interacting with a deployed contract from the command line), in a cleaner and more robust way. the tutorial could start from this script and adapt it to add a custom deploy method.
  • tx.wait() can replace the hacky loopUntilAccountExists()
  • zkAppNeedsInitialization() can be left out, because this is handled automatically in SmartContract.deploy() now

EDIT: much of this is done with #234. The only "hack" that remains is loopUntilAccountExists(), our current API can't replace it as it is used in that example

@mitschabaude
Copy link
Contributor Author

mitschabaude commented Jan 12, 2023

When the faucet function makes it into snarkyjs or the CLI, would be good to add that as well

@mitschabaude mitschabaude changed the title Overhaul server-side tutorial with new APIs Change server-side tutorial to use faucet Feb 6, 2023
@barriebyron barriebyron added docs Improvements or additions to documentation Tutorials How to, step-by-step developer walk throughs labels Aug 15, 2023
@garwalsh garwalsh added to-burn and removed to-burn labels Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation Tutorials How to, step-by-step developer walk throughs
Projects
None yet
Development

No branches or pull requests

3 participants